summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-07 21:45:38 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-03-07 21:45:38 +0100
commitfa5e6cef759ad9e0f6c669c2b891d687599cac14 (patch)
tree25e2b7ab3c0c691b956b3898155bf386c6e5b46a
parent8f12ce618cbaa57945b62ab1d462620c316212dd (diff)
downloadpacman-fa5e6cef759ad9e0f6c669c2b891d687599cac14.tar.gz
pacman-fa5e6cef759ad9e0f6c669c2b891d687599cac14.tar.xz
prepare code for cache loaded with only DEPENDS
-rw-r--r--lib/libalpm/alpm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index e0370948..55c4e274 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -420,9 +420,8 @@ void *alpm_pkg_getinfo(pmpkg_t *pkg, unsigned char parm)
if(pkg->origin == PKG_FROM_CACHE) {
switch(parm) {
/* Desc entry */
- /* not needed: the cache is loaded with DESC by default
- case PM_PKG_NAME:
- case PM_PKG_VERSION:
+ /*case PM_PKG_NAME:
+ case PM_PKG_VERSION:*/
case PM_PKG_DESC:
case PM_PKG_GROUPS:
case PM_PKG_URL:
@@ -438,7 +437,7 @@ void *alpm_pkg_getinfo(pmpkg_t *pkg, unsigned char parm)
_alpm_log(PM_LOG_DEBUG, "loading DESC info for '%s'", pkg->name);
_alpm_db_read(pkg->data, INFRQ_DESC, pkg);
}
- break;*/
+ break;
/* Depends entry */
/* not needed: the cache is loaded with DEPENDS by default
case PM_PKG_DEPENDS: