mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
Avoid slackpkg to corrupt the slackware database if there are some manual upgrade in progress.
This commit is contained in:
parent
ba1e48c20f
commit
9706ba69d6
1 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue