provide command for downloading missing databases
This is primarily to help users who are not aware that -F operations use a separate set of databases that need to be separately downloaded. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
bcc9c417ae
commit
fa8419a0b5
1 changed files with 3 additions and 2 deletions
|
@ -308,8 +308,9 @@ void cb_event(alpm_event_t *event)
|
||||||
case ALPM_EVENT_DATABASE_MISSING:
|
case ALPM_EVENT_DATABASE_MISSING:
|
||||||
if(!config->op_s_sync) {
|
if(!config->op_s_sync) {
|
||||||
pm_printf(ALPM_LOG_WARNING,
|
pm_printf(ALPM_LOG_WARNING,
|
||||||
"database file for '%s' does not exist\n",
|
"database file for '%s' does not exist (use '%s' to download)\n",
|
||||||
event->database_missing.dbname);
|
event->database_missing.dbname,
|
||||||
|
config->op == PM_OP_FILES ? "-Fy": "-Sy");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ALPM_EVENT_PACNEW_CREATED:
|
case ALPM_EVENT_PACNEW_CREATED:
|
||||||
|
|
Loading…
Add table
Reference in a new issue