Fix exit code for pending updates.

This commit is contained in:
Dave Woodfall 2021-03-12 20:58:54 +00:00 committed by Robby Workman
parent 2a9a6b25b3
commit 0080f0810d
4 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,6 @@
---------------
- Fix exit code for pending updates (dive)
- Avoid matching txz/tgz etc extension when blacklisting (dive)
- Use https for all slackpkg homepage links
- Update mirror files (14.2 -> 15.0)

View file

@ -7,7 +7,7 @@
# Clean-up tmp and lock files
#
function cleanup() {
local retval=0
local retval=${PENDING_UPDATES:-0}
[ "$SPINNING" = "off" ] || tput cnorm
if [ -e $TMPDIR/error.log ]; then
retval=1

View file

@ -332,6 +332,7 @@ case "$CMD" in
echo "Slackpkg: No updated packages since last check."
else
echo "Slackpkg: Updated packages are available since last check." >&2
PENDING_UPDATES=1
fi
;;
show-changelog)

View file

@ -23,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=slackpkg
VERSION=${VERSION:-15.0.1}
VERSION=${VERSION:-15.0.1_beta1}
ARCH="noarch"
BUILD=${BUILD:-1}