From f2023176f6177fd9f2f3b7c8b2a5288f485892f7 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 6 Mar 2011 17:45:33 +1000 Subject: Do not print warning with files entry in sync db repo-add can add a "files" entry into the sync db. Currently we do nothing with this file, so explicitly skip it to prevent unknown database file warnings. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- lib/libalpm/be_sync.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 5faf0b8d..6c0d2d67 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -432,9 +432,11 @@ static int sync_db_read(pmdb_t *db, struct archive *archive, READ_AND_STORE_ALL(pkg->deltas); } } + } else if(strcmp(filename, "files") == 0) { + /* currently do nothing with this file */ } else { - /* unknown database file */ - _alpm_log(PM_LOG_DEBUG, "unknown database file: %s", filename); + /* unknown database file */ + _alpm_log(PM_LOG_DEBUG, "unknown database file: %s\n", filename); } error: -- cgit v1.2.3-70-g09d2