testdb: ignore ALPM_DB_VERSION
Replaces the test for hidden files which appears to be leftover from
2e431e1cc
before sync db checking was moved to a separate function.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
9d4d81783d
commit
82208c0239
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ static int check_localdb_files(void)
|
||||||
|
|
||||||
while((ent = readdir(dir)) != NULL) {
|
while((ent = readdir(dir)) != NULL) {
|
||||||
if(strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0
|
if(strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0
|
||||||
|| ent->d_name[0] == '.') {
|
|| strcmp(ent->d_name, "ALPM_DB_VERSION") == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* check for known db files in local database */
|
/* check for known db files in local database */
|
||||||
|
|
Loading…
Add table
Reference in a new issue