diff options
author | Peter Hyman <pete@peterhyman.com> | 2020-12-29 10:26:31 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2021-01-04 23:04:25 -0600 |
commit | f62ecabf6c2a92ed7f689b7ac0eda52da4d094cc (patch) | |
tree | afd30b418944c29f7e2adc449e5cb790c509c339 /files/slackpkg | |
parent | 96f2132657a96d3fa7a11241a28499927be1690d (diff) | |
download | slackpkg-f62ecabf6c2a92ed7f689b7ac0eda52da4d094cc.tar.xz |
Changes to checkchangelog function
* Modify checkchangelog() function to only check CHECKSUMS.md5.asc.
* Remove unneeded check of ChangeLog.txt from checkchangelog() function.
* Move fetching of ChangeLog.txt to updatefilelists() function.
* Modify check-updates to output need to update to stderr so cron
jobs will notify sysadmin.
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'files/slackpkg')
-rw-r--r-- | files/slackpkg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/files/slackpkg b/files/slackpkg index 52f8c9b..f579ea3 100644 --- a/files/slackpkg +++ b/files/slackpkg @@ -318,10 +318,12 @@ case "$CMD" in full_usage ;; 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 - echo "No updated packages since last check." + echo "Slackpkg: No updated packages since last check." else - echo "Updated packages are available since last check." + echo "Slackpkg: Updated packages are available since last check." >&2 fi ;; update) |