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 <rworkman@slackware.com>
Thanks to Igor Murzov <igor@gplsoft.org> for the initial
contribution of this file to the upstream bash-completion
project, and thanks to Ville Skyttä <ville.skytta@iki.fi>
and Koichi Murase <myoga.murase@gmail.com> for various
changes and fixes since then.
Co-authored-by: Igor Murzov <igor@gplsoft.org>
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
- Added code to parse a list with the .new files and the default
action to do.
- Added post-functions.conf file to hold the aforementioned list
and possible future configurations.
- Updated the SlackBuild to install the post-functions.conf file
From Eugen Wissner:
/usr/sbin/slackpkg claims to be a /bin/sh script, but it is not, since
it contains bashisms (bash arrays in the configuration, bash functions).
Make blacklist file a full package name regex.
Replace redundant 'print $0 } else { print $0' in cutpkg.awk.
Fix formatting on 'blacklist or ignore' message.
One extra prompt at end to stop file list flying off top of screen.
Calculate lines in K/O/R/P prompt before printing it, and use it to
work out screen MAXROWS etc.
Merge server and local lists in subshell. Filter once.
This takes the server and local package lists, sorts, applies blacklist,
sorts again to make a large list of package names in blacklist.
Use internal printf rather than external ls to build local list.
Also pass local package list to blacklist