Fixed regression in givepriority

This commit is contained in:
Matteo Rossini 2016-04-19 00:02:40 +02:00
parent 0fce4c3a19
commit 15bab88651

View file

@ -828,7 +828,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
AUTOP=no
if [[ "$CMD" == "upgrade" || "$CMD" == "upgrade-all" ]];then
( cd $ROOT/var/log/packages
ls $ARGUMENT-*-*-* 2>/dev/null|sed 's/$/.txz/' | awk -f /usr/libexec/slackpkg/pkglist.awk|awk '{print $1}'|grep -q " $ARGUMENT "
ls $ARGUMENT-*-*-* 2>/dev/null|sed 's/$/.txz/' | awk -f /usr/libexec/slackpkg/pkglist.awk|grep -q " $ARGUMENT "
)||return
if [ ! -z "$AUTOPRIORITY" ];then
if echo "$ARGUMENT"|grep -wq $AUTOPRIORITY;then