diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 78b5f02..c52898e 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -384,6 +384,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then unset NAME unset FULLNAME unset PKGDATA + unset LINEIDX AUTOP=no if [[ "$CMD" == "upgrade" || "$CMD" == "upgrade-all" ]];then diff --git a/src/zdialogplus.sh b/src/zdialogplus.sh index 02854c4..8ba26cb 100755 --- a/src/zdialogplus.sh +++ b/src/zdialogplus.sh @@ -40,7 +40,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then if [ "$2" = "upgrade" ]; then ls -1 $ROOT/var/log/packages > $TMPDIR/tmplist - for i in $(for x in $1; do echo $x;done|grep -f - $TMPDIR/pkglist.sort); do + #for i in $(for x in $1; do echo $x;done|grep -f - $TMPDIR/pkglist.sort); do + for i in $1; do TMPONOFF=$ONOFF BASENAME=$(cutpkg $i) PKGFOUND=$(grep -m1 -e "^${BASENAME}-[^-]\+-[^-]\+-[^-]\+$" $TMPDIR/tmplist)