Commit 4c852396 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm prescription i586-fix: check package installable before install it (etebug #17831)

parent 13a6503a
...@@ -38,9 +38,7 @@ for i in \ ...@@ -38,9 +38,7 @@ for i in \
libnvidia-ml \ libnvidia-ml \
$(epmqp --short nvidia_glx | grep "^nvidia_glx") $(epmqp --short nvidia_glx | grep "^nvidia_glx")
do do
epm status --installed $i || continue epm --quiet installed $i && LIST="$LIST i586-$i"
# install i586-* only for actual packages
epm status --installable $i && LIST="$LIST i586-$i"
done done
} }
...@@ -63,7 +61,6 @@ vendor="$(epm print info -s)" ...@@ -63,7 +61,6 @@ vendor="$(epm print info -s)"
LIST='' LIST=''
echo echo
echo "Checking for installed packages ... " echo "Checking for installed packages ... "
case "$vendor" in case "$vendor" in
"alt") "alt")
get_list_alt get_list_alt
...@@ -77,10 +74,17 @@ case "$vendor" in ...@@ -77,10 +74,17 @@ case "$vendor" in
;; ;;
esac esac
filtered_list=""
for pkg in $LIST; do
if epm status --installable $pkg; then
filtered_list="$filtered_list $pkg"
fi
done
echo echo
echo "Installing all appropiate 32 bit packages ..." echo "Installing all appropiate 32 bit packages ..."
noremove='' noremove=''
[ -n "$auto" ] && noremove='--no-remove' [ -n "$auto" ] && noremove='--no-remove'
LIST="$filtered_list"
epm install $noremove $LIST epm install $noremove $LIST
RES=$? RES=$?
......
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