mirror of
https://github.com/rworkman/slackpkg
synced 2024-12-25 21:58:42 +01:00
Automatically rebuild package lists if missing
Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
parent
25aac7e027
commit
ea08809a75
2 changed files with 5 additions and 7 deletions
|
@ -243,11 +243,9 @@ ONE mirror in ${CONF}/mirrors and run:\n\n\
|
||||||
You can see more information about slackpkg functions in slackpkg manpage."
|
You can see more information about slackpkg functions in slackpkg manpage."
|
||||||
cleanup
|
cleanup
|
||||||
elif [ "$CMD" != "new-config" ] && [ "$CMD" != "help" ]; then
|
elif [ "$CMD" != "new-config" ] && [ "$CMD" != "help" ]; then
|
||||||
echo -e "\
|
updatefilelists
|
||||||
\nThe package list is missing.\n\
|
mkregex_blacklist
|
||||||
Before you install|upgrade|reinstall anything you need to run:\n\n\
|
UPDATED=1
|
||||||
\t# slackpkg update\n"
|
|
||||||
cleanup
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1083,6 +1081,7 @@ Please check your mirror and try again."
|
||||||
|
|
||||||
function updatefilelists()
|
function updatefilelists()
|
||||||
{
|
{
|
||||||
|
echo "Updating the package lists..."
|
||||||
if checkchangelog ; then
|
if checkchangelog ; then
|
||||||
echo -e "\
|
echo -e "\
|
||||||
\n\t\tNo changes in ChangeLog.txt between your last update and now.\n\
|
\n\t\tNo changes in ChangeLog.txt between your last update and now.\n\
|
||||||
|
|
|
@ -328,7 +328,7 @@ case "$CMD" in
|
||||||
check-updates)
|
check-updates)
|
||||||
# output to stdout if no change, or stderr if changes. Will cause
|
# output to stdout if no change, or stderr if changes. Will cause
|
||||||
# cron jobs to notify system admin
|
# cron jobs to notify system admin
|
||||||
if checkchangelog 1>/dev/null 2>/dev/null ; then
|
if checkchangelog 1>/dev/null 2>/dev/null && [ "$UPDATED" != "1" ] ; then
|
||||||
echo "Slackpkg: No updated packages since last check."
|
echo "Slackpkg: No updated packages since last check."
|
||||||
else
|
else
|
||||||
echo "Slackpkg: Updated packages are available since last check." >&2
|
echo "Slackpkg: Updated packages are available since last check." >&2
|
||||||
|
@ -356,7 +356,6 @@ case "$CMD" in
|
||||||
cleanup
|
cleanup
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Updating the package lists..."
|
|
||||||
updatefilelists
|
updatefilelists
|
||||||
;;
|
;;
|
||||||
install)
|
install)
|
||||||
|
|
Loading…
Reference in a new issue