diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2021-03-12 20:58:54 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2021-03-12 19:48:41 -0600 |
commit | 0080f0810dd5293e1ae108d7f60ae638d4d547b4 (patch) | |
tree | 38e3fd08343d74514dde4576e83866cd0ae121c1 | |
parent | 2a9a6b25b346ec3e8343346db90e5d26476c3e94 (diff) | |
download | slackpkg-0080f0810dd5293e1ae108d7f60ae638d4d547b4.tar.xz |
Fix exit code for pending updates.
-rw-r--r-- | files/ChangeLog | 1 | ||||
-rw-r--r-- | files/core-functions.sh | 2 | ||||
-rw-r--r-- | files/slackpkg | 1 | ||||
-rwxr-xr-x | slackpkg.SlackBuild | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/files/ChangeLog b/files/ChangeLog index 0c0354a..1a4ae3f 100644 --- a/files/ChangeLog +++ b/files/ChangeLog @@ -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) diff --git a/files/core-functions.sh b/files/core-functions.sh index db7cd5d..85ceb2c 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -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 diff --git a/files/slackpkg b/files/slackpkg index 51c8572..746a8c5 100644 --- a/files/slackpkg +++ b/files/slackpkg @@ -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) diff --git a/slackpkg.SlackBuild b/slackpkg.SlackBuild index e410e48..6f9aaa6 100755 --- a/slackpkg.SlackBuild +++ b/slackpkg.SlackBuild @@ -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} |