Commit a11b57a4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distro_info: fix --distro-arch for rpm based systems

parent 438588b8
...@@ -496,7 +496,7 @@ get_debian_arch() ...@@ -496,7 +496,7 @@ get_debian_arch()
{ {
local arch="$(get_arch)" local arch="$(get_arch)"
case $arch in case $arch in
'i586') 'x86')
arch='i386' ;; arch='i386' ;;
'x86_64') 'x86_64')
arch='amd64' ;; arch='amd64' ;;
...@@ -509,7 +509,10 @@ get_distro_arch() ...@@ -509,7 +509,10 @@ get_distro_arch()
local arch="$(get_arch)" local arch="$(get_arch)"
case "$(pkgtype)" in case "$(pkgtype)" in
rpm) rpm)
: case $arch in
'x86')
arch='i586' ;;
esac
;; ;;
deb) deb)
get_debian_arch get_debian_arch
...@@ -679,7 +682,7 @@ EOF ...@@ -679,7 +682,7 @@ EOF
case $1 in case $1 in
-h) -h|--help)
echo "distro_info v$PROGVERSION - distro information retriever" echo "distro_info v$PROGVERSION - distro information retriever"
echo "Usage: distro_info [options] [args]" echo "Usage: distro_info [options] [args]"
echo "Options:" echo "Options:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment