Give a chance to disable the packages cache purge.

This commit is contained in:
Matteo Rossini 2022-01-21 19:39:03 +01:00
parent c99ebe47ac
commit 6f3d5ed425

View file

@ -2107,7 +2107,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
touch $WORKDIR/install.log
fi
if [ -e $TEMP ];then
if [ -e $TEMP ]&&[ -z "$PURGECACHE" ];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