index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-21 06:44:14 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-21 06:44:14 +0000 |
commit | 436f36c76b74f7580da48e618dbdbd78037736fb (patch) | |
tree | 2ac3224aebed635bde3b6730c02cf3cbeb57f71c /lib/libalpm/cache.c | |
parent | 1334f5c56c8394e69ad16f3b5269105e3dc42246 (diff) |
-rw-r--r-- | lib/libalpm/cache.c | 4 |
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c index e7c58a19..41038fe3 100644 --- a/lib/libalpm/cache.c +++ b/lib/libalpm/cache.c @@ -61,6 +61,7 @@ int _alpm_db_load_pkgcache(pmdb_t *db, pmdbinfrq_t infolevel) _alpm_db_rewind(db); while((info = _alpm_db_scan(db, NULL, infolevel)) != NULL) { + _alpm_log(PM_LOG_DEBUG, _("adding '%s' to package cache for db '%s'"), info->name, db->treename); info->origin = PKG_FROM_CACHE; info->data = db; /* add to the collection */ @@ -104,6 +105,9 @@ alpm_list_t *_alpm_db_get_pkgcache(pmdb_t *db, pmdbinfrq_t infolevel) _alpm_db_ensure_pkgcache(db, infolevel); + if(!db->pkgcache) { + _alpm_log(PM_LOG_DEBUG, _("error: pkgcache is NULL for db %s"), db->treename); + } return(db->pkgcache); } |