Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-03-06 17:45:33 +1000
committerDan McGee <dan@archlinux.org>2011-03-07 13:54:38 -0600
commitf2023176f6177fd9f2f3b7c8b2a5288f485892f7 (patch)
treea054dc46de1c4ef7a70c5ad185861c1f347fe2f2 /lib
parent0b6aa428cf06e9e23ac4d912f8f6eba2330af226 (diff)
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 <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_sync.c6
1 files changed, 4 insertions, 2 deletions
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: