summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-10-29 06:35:41 +0100
committerAllan McRae <allan@archlinux.org>2012-12-14 03:35:34 +0100
commitf5d904d97f66d5e3337578541f2f440e846b9490 (patch)
tree6ae93405b8e5078aff65dffcdb12b1a26fb6b374 /lib/libalpm/be_sync.c
parent422a4021e482c51d4f21303dfd4eff4c15ba1114 (diff)
downloadpacman-f5d904d97f66d5e3337578541f2f440e846b9490.tar.gz
pacman-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 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 6bac6fbf..60094552 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -89,8 +89,7 @@ static int sync_db_validate(alpm_db_t *db)
if(_alpm_access(db->handle, NULL, dbpath, R_OK) != 0 && errno == ENOENT) {
db->status &= ~DB_STATUS_EXISTS;
db->status |= DB_STATUS_MISSING;
- _alpm_log(db->handle, ALPM_LOG_WARNING,
- "database file for '%s' does not exist\n", db->treename);
+ EVENT(db->handle, ALPM_EVENT_DATABASE_MISSING, db->treename, NULL);
goto valid;
}
db->status |= DB_STATUS_EXISTS;