From 13c79b1eb2b3d64a935d89c56d53776063b56820 Mon Sep 17 00:00:00 2001 From: piterpunk Date: Fri, 8 Oct 2021 15:35:20 -0300 Subject: New exit status for different situations To make easier to do an unattended slackpkg update/upgrade process, this commit provides different exit codes to many situations: 0 Successful slackpkg execution. 1 Something wrong happened. 20 No package found to be downloaded, installed, reinstalled, upgraded, or removed. 50 Slackpkg itself was upgraded and you need to re-run it. 100 There are pending updates. Code and the main manpage are updated accordingly. In addition, this commit also: - removes the ChangeLog.txt in doinst.sh, so the needed 'slackpkg update' after Slackpkg upgrade won't says it's all OK and don't need to redo the package lists - removes AUTHORS from manpage. Nowadays there are code from many people in Slackpkg and shows a bit unfair to have only my and Evaldo's name listed there. Signed-off-by: Robby Workman --- doinst.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'doinst.sh') diff --git a/doinst.sh b/doinst.sh index 02790a4..7726414 100644 --- a/doinst.sh +++ b/doinst.sh @@ -39,5 +39,6 @@ copy_mirror_file config etc/slackpkg/mirrors.new config etc/slackpkg/slackpkg.conf.new config etc/slackpkg/blacklist.new +rm -f var/lib/slackpkg/ChangeLog.txt rm -f var/lib/slackpkg/pkglist rm -f var/lib/slackpkg/CHECKSUMS.md5* -- cgit v1.2.3