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
Nurlan
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
Hide 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,6 +403,18 @@ esac
echo
"
$DIST_ARCH
"
}
get_debian_arch
()
{
local arch
=
"
$(
get_arch
)
"
case
$arch
in
'i586'
)
arch
=
'i386'
;;
'x86_64'
)
arch
=
'amd64'
;;
esac
echo
"
$arch
"
}
get_distro_arch
()
{
local arch
=
"
$(
get_arch
)
"
...
...
@@ -411,12 +423,8 @@ get_distro_arch()
:
;;
deb
)
case
$arch
in
'i586'
)
arch
=
'i386'
;;
'x86_64'
)
arch
=
'amd64'
;;
esac
get_debian_arch
return
;;
esac
echo
"
$arch
"
...
...
@@ -614,6 +622,12 @@ case $1 in
get_distro_arch
exit
0
;;
--debian-arch
)
# override DISTRIB_ID
test
-n
"
$2
"
&&
DISTRIB_ID
=
"
$2
"
get_debian_arch
exit
0
;;
-d
)
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