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