mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
Version 20131116.1 - 16/Nov/2013
- Missed real greylist code :)
This commit is contained in:
parent
42a11dc682
commit
97f075ae99
4 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
Version 20131116.1 - 16/Nov/2013
|
||||
- Missed real greylist code :)
|
||||
|
||||
Version 20131114.2 - 14/Nov/2013
|
||||
- Added /etc/slackpkg/greylist . All packages in that list will be showned
|
||||
unchecked by default
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
Version 20131116.1 - 16/Nov/2013
|
||||
- Missed real greylist code :)
|
||||
|
||||
Version 20131114.2 - 14/Nov/2013
|
||||
- Added /etc/slackpkg/greylist . All packages in that list will be showned
|
||||
unchecked by default
|
||||
|
|
|
@ -472,6 +472,11 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
done
|
||||
}
|
||||
|
||||
touch $TMPDIR/greylist.tmp
|
||||
if [ -e /etc/slackpkg/greylist ];then
|
||||
cat /etc/slackpkg/greylist|sed -e 's/#.*//'|grep -v -e '^#' -e '^$'|awk '{print $1}'|sort -u >$TMPDIR/greylist.tmp
|
||||
fi
|
||||
|
||||
REPOPLUS=$(echo "${REPOPLUS[*]} ${PKGS_PRIORITY[*]} ${!MIRRORPLUS[*]}"|sed 's/ /\n/g'|sed 's/:.*//'|awk '{if(!a[$1]++)print $1}')
|
||||
PRIORITY=( ${PRIORITY[*]} SLACKPKGPLUS_$(echo $REPOPLUS|sed 's/ / SLACKPKGPLUS_/g') )
|
||||
|
||||
|
@ -874,4 +879,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
cleanup
|
||||
fi
|
||||
|
||||
cat $TMPDIR/greylist*|sort -u >$TMPDIR/unchecklist
|
||||
|
||||
fi
|
||||
|
|
|
@ -24,17 +24,20 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
if [ "$2" = "upgrade" ]; then
|
||||
ls -1 /var/log/packages > $TMPDIR/tmplist
|
||||
for i in $1; do
|
||||
TMPONOFF=$ONOFF
|
||||
BASENAME=$(cutpkg $i)
|
||||
PKGFOUND=$(grep -m1 -e "^${BASENAME}-[^-]\+-\(noarch\|fw\|${ARCH}\)" $TMPDIR/tmplist)
|
||||
REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//')
|
||||
|
||||
echo "$i \"$REPOPOS\" $ONOFF \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp
|
||||
grep -q "^$(echo $i|rev|cut -f4- -d-|rev)$" $TMPDIR/unchecklist && TMPONOFF="off"
|
||||
echo "$i \"$REPOPOS\" $TMPONOFF \"currently installed: $PKGFOUND\"" >>$TMPDIR/dialog.tmp
|
||||
done
|
||||
HINT="--item-help"
|
||||
else
|
||||
for i in $1; do
|
||||
TMPONOFF=$ONOFF
|
||||
REPOPOS=$(grep -m1 " $(echo $i|sed 's/\.t.z//') " $TMPDIR/pkglist|awk '{print $1}'|sed 's/SLACKPKGPLUS_//')
|
||||
echo "$i \"$REPOPOS\" $ONOFF" >>$TMPDIR/dialog.tmp
|
||||
grep -q "^$(echo $i|rev|cut -f4- -d-|rev)$" $TMPDIR/unchecklist && TMPONOFF="off"
|
||||
echo "$i \"$REPOPOS\" $TMPONOFF" >>$TMPDIR/dialog.tmp
|
||||
done
|
||||
HINT=""
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue