summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-10-29 15:35:41 +1000
committerAllan McRae <allan@archlinux.org>2012-12-14 12:35:34 +1000
commitf5d904d97f66d5e3337578541f2f440e846b9490 (patch)
tree6ae93405b8e5078aff65dffcdb12b1a26fb6b374 /src
parent422a4021e482c51d4f21303dfd4eff4c15ba1114 (diff)
downloadpacman-f5d904d97f66d5e3337578541f2f440e846b9490.tar.xz
Do not warn about missing database if being downloaded
When a configured repo database is not already downloaded, a warning message such as "warning: database file for 'testing' does not exist" is printed. Disable this warning when the database is scheduled to be downloaded in the transaction. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index a51aa4b6..a249a6ef 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -243,6 +243,12 @@ void cb_event(alpm_event_t event, void *data1, void *data2)
printf(_(":: %s optionally requires %s\n"), alpm_pkg_get_name(data1),
alpm_dep_compute_string(data2));
break;
+ case ALPM_EVENT_DATABASE_MISSING:
+ if(!config->op_s_sync) {
+ pm_printf(ALPM_LOG_WARNING,
+ "database file for '%s' does not exist\n", (char *)data1);
+ }
+ break;
/* all the simple done events, with fallthrough for each */
case ALPM_EVENT_FILECONFLICTS_DONE:
case ALPM_EVENT_CHECKDEPS_DONE: