index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Pascal Ernster <pacman-dev@hardfalcon.net> | 2021-01-21 03:49:58 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-01-21 17:17:37 +1000 |
commit | 05aefb8f82d856626598ef6a3f49ff8d5f623bf5 (patch) | |
tree | 28ce7cb78a17283f99b969c7572df9c20dafccae | |
parent | 1c4e07989940a435483563be7c12915b32289fbe (diff) |
-rw-r--r-- | src/pacman/sync.c | 2 |
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index a05af5da..9ec4c92e 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -105,7 +105,7 @@ static int sync_cleandb(const char *dbpath) dbname = strndup(dname, len - 7); } else if(len > 6 && strcmp(dname + len - 6, ".files") == 0) { dbname = strndup(dname, len - 6); - } else if(len > 6 && strcmp(dname + len - 6, ".files.sig") == 0) { + } else if(len > 10 && strcmp(dname + len - 10, ".files.sig") == 0) { dbname = strndup(dname, len - 10); } else { ret += unlink_verbose(path, 0); |