Commit c1ba83a7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm prescription: fix i586-fix/i586-remove

parent 96186529
......@@ -2,7 +2,8 @@
[ "$1" != "--run" ] && echo "Fix missed 32 bit package modules on 64 bit system" && exit
distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
vendor="$($DISTRVENDOR -s)" ; [ "$vendor" = "alt" ] || { echo "Only ALT distros is supported for now" ; exit 1 ; }
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
LIST=''
......@@ -21,4 +22,4 @@ done
echo
echo "Installing all appropiate i586-* packages ..."
epmi $LIST
epm install $LIST
......@@ -4,14 +4,14 @@
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
case "$($DISTRVENDOR -d)" in
"ALTLinux"|"ALTServer")
case "$($DISTRVENDOR -s)" in
alt)
epm --verbose --simulate remove $(epmqp "^i586-")
;;
"Ubuntu"|"Debian")
ubuntu|debian)
epm --verbose --simulate remove $(epmqp "^i386-")
;;
*)
fatal "unsupported vendor"
fatal "unsupported vendor $($DISTRVENDOR -s)"
;;
esac
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