[pacman-dev] [PATCH] testdb: ignore ALPM_DB_VERSION

Andrew Gregory andrew.gregory.8 at gmail.com
Wed Oct 15 09:38:55 UTC 2014


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 at gmail.com>
---
 src/util/testdb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/testdb.c b/src/util/testdb.c
index e3b331a..cd8c4d8 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 */
-- 
2.1.2


More information about the pacman-dev mailing list