Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
200df9d1
Commit
200df9d1
authored
Oct 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: add --debian-arch
parent
d0986ccb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
distr_info
bin/distr_info
+20
-6
No files found.
bin/distr_info
View file @
200df9d1
...
@@ -403,20 +403,28 @@ esac
...
@@ -403,20 +403,28 @@ esac
echo
"
$DIST_ARCH
"
echo
"
$DIST_ARCH
"
}
}
get_d
istro
_arch
()
get_d
ebian
_arch
()
{
{
local arch
=
"
$(
get_arch
)
"
local arch
=
"
$(
get_arch
)
"
case
"
$(
pkgtype
)
"
in
rpm
)
:
;;
deb
)
case
$arch
in
case
$arch
in
'i586'
)
'i586'
)
arch
=
'i386'
;;
arch
=
'i386'
;;
'x86_64'
)
'x86_64'
)
arch
=
'amd64'
;;
arch
=
'amd64'
;;
esac
esac
echo
"
$arch
"
}
get_distro_arch
()
{
local arch
=
"
$(
get_arch
)
"
case
"
$(
pkgtype
)
"
in
rpm
)
:
;;
deb
)
get_debian_arch
return
;;
;;
esac
esac
echo
"
$arch
"
echo
"
$arch
"
...
@@ -614,6 +622,12 @@ case $1 in
...
@@ -614,6 +622,12 @@ case $1 in
get_distro_arch
get_distro_arch
exit
0
exit
0
;;
;;
--debian-arch
)
# override DISTRIB_ID
test
-n
"
$2
"
&&
DISTRIB_ID
=
"
$2
"
get_debian_arch
exit
0
;;
-d
)
-d
)
echo
$DISTRIB_ID
echo
$DISTRIB_ID
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment