diff options
Diffstat (limited to 'files/slackpkg')
-rw-r--r-- | files/slackpkg | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/files/slackpkg b/files/slackpkg index f579ea3..b616a6a 100644 --- a/files/slackpkg +++ b/files/slackpkg @@ -246,7 +246,7 @@ while [ -n "$1" ] ; do shift fi ;; - install-new|upgrade-all|clean-system|new-config|check-updates|help) + install-new|upgrade-all|clean-system|new-config|check-updates|show-changelog|help) CMD=$1 shift if [ -n "$1" ]; then @@ -326,6 +326,15 @@ case "$CMD" in echo "Slackpkg: Updated packages are available since last check." >&2 fi ;; + show-changelog) + # display changelog and exit + if [ -e ${ROOT}/${WORKDIR}/ChangeLog.txt ]; then + $MORECMD ${ROOT}/${WORKDIR}/ChangeLog.txt + else + echo "ChangeLog.txt file not found. Aborting" + fi + POSTINST=off + ;; update) # If you are using "slackpkg update gpg" OR the system # doesn't have Slackware GPG key, download and install |