https://news.slashdot.org/story/22/09/05/0135254/
The egrep and fgrep commands have been deprecated since 2007.
Beginning with GNU Grep 3.8 today, calling these commands will now issue
a warning to the user that instead they should use
grep -E and grep -F, respectively
- When in batch mode, don't wait for <enter> after kernel upgrade,
so Slackpkg will not wait forever.
- Also in batch mode, allow to set a default action about what to
do with .new config files
Creates /var/run/needs_restarting file if any "critical" package got
upgraded. As the /var/run/ is ephemeral and renewed each boot, the
file disappears after reboot.
The packages that flags the restart need are:
- kernel-generic, kernel-huge: as a new kernel needs a restart to be
running.
- glibc, glibc-solibs: Restart is the only way to be sure that all
running binaries are using the new glibc.
- eudev, elogind, dbus: those provides some very basic system
services.
- openssl, openssl-solibs: security bugs on those libs are dangerous,
the reboot makes sure that all running binaries are using the newer
version.
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.