index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2013-07-07 19:52:13 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-07-22 13:26:56 +1000 |
commit | 24abcddc574be22b82095ea647209e072080764a (patch) | |
tree | 5618409e9baee44d21420873c9f584e4e0351330 /lib/libalpm | |
parent | ef6b6fe06572c75628943fee7067b1ef453c672a (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 8 |
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index bd68739f..0b996843 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -562,6 +562,14 @@ static int sync_db_read(alpm_db_t *db, struct archive *archive, return -1; } + if(filename == NULL) { + /* A file exists outside of a subdirectory. This isn't a read error, so return + * success and try to continue on. */ + _alpm_log(db->handle, ALPM_LOG_WARNING, _("unknown database file: %s\n"), + filename); + return 0; + } + if(strcmp(filename, "desc") == 0 || strcmp(filename, "depends") == 0 || (strcmp(filename, "deltas") == 0 && db->handle->deltaratio > 0.0) ) { int ret; |