mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
clean cache from packages without gpg signature
This commit is contained in:
parent
94c5a7940a
commit
01bb9d7eca
1 changed files with 5 additions and 0 deletions
|
@ -1826,6 +1826,11 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
touch $WORKDIR/install.log
|
touch $WORKDIR/install.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e $TEMP ];then
|
||||||
|
# clean cache from packages without gpg signature
|
||||||
|
find $TEMP ! -type d|sort|tac|awk '{if($1~/\.asc$/)f[$1]++;if($1~/\.t.z$/ && !f[$1".asc"])print $1}' |xargs -r rm -f
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$CMD" == "update" -o "$CMD" == "check-updates" ];then
|
if [ "$CMD" == "update" -o "$CMD" == "check-updates" ];then
|
||||||
# answer to "Do you really want to download all other files"
|
# answer to "Do you really want to download all other files"
|
||||||
# if there are new changes
|
# if there are new changes
|
||||||
|
|
Loading…
Reference in a new issue