index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2014-12-22 00:33:41 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-12-24 11:19:29 +1000 |
commit | 87e55a4ee7a92ab7510fd268717d21dbba6f5cf6 (patch) | |
tree | 2a8e1e0cd37b005081fd53c3c8c02186b3dd35f9 | |
parent | cd5e4b89f4564edb1926e18dd857a9d3842c17e4 (diff) |
-rw-r--r-- | lib/libalpm/db.c | 5 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 466c96f1..11e3a3b0 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -542,7 +542,10 @@ alpm_pkghash_t *_alpm_db_get_pkgcache_hash(alpm_db_t *db) } if(!(db->status & DB_STATUS_PKGCACHE)) { - load_pkgcache(db); + if(load_pkgcache(db)) { + /* handle->error set in local/sync-db-populate */ + return NULL; + } } return db->pkgcache; |