From a21b1100e90dbceb5f23e0899703d0fcc881b617 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 4 Mar 2006 09:42:13 +0000 Subject: make cache works when loading it with DEPENDS info only --- lib/libalpm/cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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(); -- cgit v1.2.3-70-g09d2