diff options
author | piterpunk <piterpunk@slackware.com> | 2021-11-07 14:01:54 -0300 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2021-11-28 01:35:37 -0600 |
commit | ea08809a7510f1fafa1a5d818933c6cddffe5f69 (patch) | |
tree | e88381d8540ee815cc8bb5116c50a5a85a560f10 /files/core-functions.sh | |
parent | 25aac7e027c1b5b6bbea0001a7a7276145edd0ed (diff) | |
download | slackpkg-ea08809a7510f1fafa1a5d818933c6cddffe5f69.tar.xz |
Automatically rebuild package lists if missing
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'files/core-functions.sh')
-rw-r--r-- | files/core-functions.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh index 5969ffc..463a190 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -243,11 +243,9 @@ ONE mirror in ${CONF}/mirrors and run:\n\n\ You can see more information about slackpkg functions in slackpkg manpage." cleanup elif [ "$CMD" != "new-config" ] && [ "$CMD" != "help" ]; then - echo -e "\ -\nThe package list is missing.\n\ -Before you install|upgrade|reinstall anything you need to run:\n\n\ -\t# slackpkg update\n" - cleanup + updatefilelists + mkregex_blacklist + UPDATED=1 fi fi @@ -1083,6 +1081,7 @@ Please check your mirror and try again." function updatefilelists() { + echo "Updating the package lists..." if checkchangelog ; then echo -e "\ \n\t\tNo changes in ChangeLog.txt between your last update and now.\n\ |