21 Dec
2014
21 Dec
'14
2:33 p.m.
Signed-off-by: Allan McRae <allan@archlinux.org> --- lib/libalpm/db.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 466c96f..11e3a3b 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; -- 2.2.0