[pacman-dev] [PATCH] provide command for downloading missing databases

Andrew Gregory andrew.gregory.8 at gmail.com
Sun Jul 9 00:33:17 UTC 2017


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 at gmail.com>
---
 src/pacman/callback.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index e1e77f78..3242d15b 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -308,8 +308,9 @@ void cb_event(alpm_event_t *event)
 		case ALPM_EVENT_DATABASE_MISSING:
 			if(!config->op_s_sync) {
 				pm_printf(ALPM_LOG_WARNING,
-					"database file for '%s' does not exist\n",
-					event->database_missing.dbname);
+						"database file for '%s' does not exist (use '%s' to download)\n",
+						event->database_missing.dbname,
+						config->op == PM_OP_FILES ? "-Fy": "-Sy");
 			}
 			break;
 		case ALPM_EVENT_PACNEW_CREATED:
-- 
2.13.2


More information about the pacman-dev mailing list