diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-10-08 21:32:14 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-10-08 21:32:14 +0000 |
commit | 05ab859eab8dbe14f1957d0a4e64b3f005630d45 (patch) | |
tree | ac53d2941e0f924384bb7986052baa858155a767 /lib/libalpm/alpm.c | |
parent | 0d6a2edaa8e39f9d7b77f0a023e8a2bfdab7a16d (diff) | |
download | pacman-05ab859eab8dbe14f1957d0a4e64b3f005630d45.tar.xz |
Reworked the cache handling to only load DEPENDS info by default
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r-- | lib/libalpm/alpm.c | 6 |
1 files changed, 2 insertions, 4 deletions
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: |