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>
This commit is contained in:
Allan McRae 2011-03-06 17:45:33 +10:00 committed by Dan McGee
parent 0b6aa428cf
commit f2023176f6
1 changed files with 4 additions and 2 deletions

View File

@ -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: