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:
parent
0b6aa428cf
commit
f2023176f6
1 changed files with 4 additions and 2 deletions
|
@ -432,9 +432,11 @@ static int sync_db_read(pmdb_t *db, struct archive *archive,
|
||||||
READ_AND_STORE_ALL(pkg->deltas);
|
READ_AND_STORE_ALL(pkg->deltas);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if(strcmp(filename, "files") == 0) {
|
||||||
|
/* currently do nothing with this file */
|
||||||
} else {
|
} else {
|
||||||
/* unknown database file */
|
/* unknown database file */
|
||||||
_alpm_log(PM_LOG_DEBUG, "unknown database file: %s", filename);
|
_alpm_log(PM_LOG_DEBUG, "unknown database file: %s\n", filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Add table
Reference in a new issue