From 05ab859eab8dbe14f1957d0a4e64b3f005630d45 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 8 Oct 2005 21:32:14 +0000 Subject: Reworked the cache handling to only load DEPENDS info by default --- lib/libalpm/alpm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 85665833..fd8641b1 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -364,8 +364,6 @@ void *alpm_pkg_getinfo(pmpkg_t *pkg, unsigned char parm) if(pkg->origin == PKG_FROM_CACHE) { switch(parm) { /* Desc entry */ - /* ORE - not needed: the cache is loaded with DESC and DEPENDS by default case PM_PKG_NAME: case PM_PKG_VERSION: case PM_PKG_DESC: @@ -384,10 +382,10 @@ void *alpm_pkg_getinfo(pmpkg_t *pkg, unsigned char parm) snprintf(target, (PKG_NAME_LEN-1)+1+(PKG_VERSION_LEN-1)+1, "%s-%s", pkg->name, pkg->version); db_read(pkg->data, target, INFRQ_DESC, pkg); } - break;*/ + break; /* Depends entry */ /* ORE - not needed: the cache is loaded with DESC and DEPENDS by default + not needed: the cache is loaded with DEPENDS by default case PM_PKG_DEPENDS: case PM_PKG_REQUIREDBY: case PM_PKG_CONFLICTS: -- cgit v1.2.3-24-g4f1b