summaryrefslogtreecommitdiff
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-04 09:42:13 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-04 09:42:13 +0000
commita21b1100e90dbceb5f23e0899703d0fcc881b617 (patch)
treee90232d67a5fceb0eb13acad613743e040ded8ea /lib/libalpm/cache.c
parente50f76bf7c76e61c4440407c917f38692bef3036 (diff)
downloadpacman-a21b1100e90dbceb5f23e0899703d0fcc881b617.tar.xz
make cache works when loading it with DEPENDS info only
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 58717b5a..76222ce2 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -173,6 +173,10 @@ int _alpm_db_load_grpcache(pmdb_t *db)
PMList *i;
pmpkg_t *pkg = lp->data;
+ if(!(pkg->infolevel & INFRQ_DESC)) {
+ _alpm_db_read(pkg->data, INFRQ_DESC, pkg);
+ }
+
for(i = pkg->groups; i; i = i->next) {
if(!_alpm_list_is_strin(i->data, db->grpcache)) {
pmgrp_t *grp = _alpm_grp_new();