summaryrefslogtreecommitdiffstats
path: root/files/slackpkg
diff options
context:
space:
mode:
authorpiterpunk <piterpunk@slackware.com>2021-11-07 14:01:54 -0300
committerRobby Workman <rworkman@slackware.com>2021-11-28 01:35:37 -0600
commitea08809a7510f1fafa1a5d818933c6cddffe5f69 (patch)
treee88381d8540ee815cc8bb5116c50a5a85a560f10 /files/slackpkg
parent25aac7e027c1b5b6bbea0001a7a7276145edd0ed (diff)
downloadslackpkg-ea08809a7510f1fafa1a5d818933c6cddffe5f69.tar.xz
Automatically rebuild package lists if missing
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'files/slackpkg')
-rw-r--r--files/slackpkg3
1 files changed, 1 insertions, 2 deletions
diff --git a/files/slackpkg b/files/slackpkg
index de02d05..9fc7f5d 100644
--- a/files/slackpkg
+++ b/files/slackpkg
@@ -328,7 +328,7 @@ case "$CMD" in
check-updates)
# output to stdout if no change, or stderr if changes. Will cause
# cron jobs to notify system admin
- if checkchangelog 1>/dev/null 2>/dev/null ; then
+ if checkchangelog 1>/dev/null 2>/dev/null && [ "$UPDATED" != "1" ] ; then
echo "Slackpkg: No updated packages since last check."
else
echo "Slackpkg: Updated packages are available since last check." >&2
@@ -356,7 +356,6 @@ case "$CMD" in
cleanup
fi
fi
- echo "Updating the package lists..."
updatefilelists
;;
install)