summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-10-15 11:38:55 +0200
committerAllan McRae <allan@archlinux.org>2014-10-19 13:32:46 +0200
commit82208c0239312fdf3da19892dc6a04e3e4cc3bb7 (patch)
tree541d05757a05235a951179c28f958d382e9dccce
parent9d4d81783d59d5abf90f6ca3093f67b3ecfec7fc (diff)
downloadpacman-82208c0239312fdf3da19892dc6a04e3e4cc3bb7.tar.gz
pacman-82208c0239312fdf3da19892dc6a04e3e4cc3bb7.tar.xz
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>
-rw-r--r--src/util/testdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c
index e3b331ab..cd8c4d83 100644
--- a/src/util/testdb.c
+++ b/src/util/testdb.c
@@ -69,7 +69,7 @@ static int check_localdb_files(void)
while((ent = readdir(dir)) != NULL) {
if(strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0
- || ent->d_name[0] == '.') {
+ || strcmp(ent->d_name, "ALPM_DB_VERSION") == 0) {
continue;
}
/* check for known db files in local database */