diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-03-04 09:42:13 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-03-04 09:42:13 +0000 |
commit | a21b1100e90dbceb5f23e0899703d0fcc881b617 (patch) | |
tree | e90232d67a5fceb0eb13acad613743e040ded8ea /lib/libalpm | |
parent | e50f76bf7c76e61c4440407c917f38692bef3036 (diff) |
make cache works when loading it with DEPENDS info only
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/cache.c | 4 |
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(); |