Avoid slackpkg to corrupt the slackware database if there are some manual upgrade in progress.

This commit is contained in:
Matteo Rossini 2016-01-29 22:30:31 +01:00
parent ba1e48c20f
commit 9706ba69d6

View file

@ -1200,6 +1200,18 @@ if [ "$SLACKPKGPLUS" = "on" ];then
fi
if [ "$CMD" == "upgrade" -o "$CMD" == "upgrade-all" ]&&ls $ROOT/var/log/packages/*:* >/dev/null 2>&1;then
echo "FATAL! There is some problem in packages database"
echo " or maybe an installation or upgrade in progress:"
echo
echo " "$(cd $ROOT/var/log/packages/ ; ls *:*)
echo
echo " If you continue you may corrupt packages database."
echo " Check or retry later"
echo
cleanup
fi
SPKGPLUS_VERSION="1.7.b1"
VERSION="$VERSION / slackpkg+ $SPKGPLUS_VERSION"