mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
Greylist also the installed packages, so it impact removing packages too.
This commit is contained in:
parent
2a61214e19
commit
f9d62992df
1 changed files with 2 additions and 2 deletions
|
@ -1045,7 +1045,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
PKGVER=$(echo $i|rev|cut -f3 -d-|rev)
|
||||
ALLFOUND=$(echo $(grep " ${BASENAME} " $TMPDIR/pkglist|sed -r -e 's/SLACKPKGPLUS_//' -e 's/^([^ ]*) [^ ]* ([^ ]*) [^ ]* ([^ ]*) .*/\2-\3(\1) ,/')|sed 's/,$//')
|
||||
|
||||
grep -m1 " ${BASENAME} " $TMPDIR/pkglist|grep -q -Ew -f $TMPDIR/greylist && TMPONOFF="off"
|
||||
( echo $PKGFOUND ; grep -m1 " ${BASENAME} " $TMPDIR/pkglist ) |grep -q -Ew -f $TMPDIR/greylist && TMPONOFF="off"
|
||||
echo "$REPOPOSFULL $i \"$REPOPOS\" $TMPONOFF \"installed: $PKGFOUND --> available: $ALLFOUND\"" >>$TMPDIR/dialog.tmp.1
|
||||
done
|
||||
|
||||
|
@ -1067,7 +1067,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
for i in $1; do
|
||||
TMPONOFF=$ONOFF
|
||||
REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//')
|
||||
grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist| grep -q -Ew -f $TMPDIR/greylist && TMPONOFF="off"
|
||||
( echo $i;grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist ) | grep -q -Ew -f $TMPDIR/greylist && TMPONOFF="off"
|
||||
echo "$i \"$REPOPOS\" $TMPONOFF" >>$TMPDIR/dialog.tmp
|
||||
done
|
||||
HINT=""
|
||||
|
|
Loading…
Reference in a new issue