summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-05 17:21:08 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-05 17:21:08 +0000
commit08b34b8aef5e5567c9f186ed9c6ae2b5a7aee47b (patch)
treefcdb7525238b0c7f1365407d7e209e272fad4a91 /lib
parentaf759f11b5dde197062b477226fe8049138ab27c (diff)
downloadpacman-08b34b8aef5e5567c9f186ed9c6ae2b5a7aee47b.tar.xz
added logs for cache generation
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 34f3d07c..a44842d6 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -27,6 +27,8 @@
#include <string.h>
#include <sys/stat.h>
/* pacman */
+#include "log.h"
+#include "alpm.h"
#include "list.h"
#include "util.h"
#include "package.h"
@@ -47,6 +49,8 @@ int db_load_pkgcache(pmdb_t *db)
db_free_pkgcache(db);
+ _alpm_log(PM_LOG_DEBUG, "loading package cache for repository \"%s\"", db->treename);
+
db_rewind(db);
while((info = db_scan(db, NULL, INFRQ_DESC|INFRQ_DEPENDS)) != NULL) {
info->origin = PKG_FROM_CACHE;
@@ -118,6 +122,8 @@ int db_load_grpcache(pmdb_t *db)
db_load_pkgcache(db);
}
+ _alpm_log(PM_LOG_DEBUG, "loading group cache for repository \"%s\"", db->treename);
+
for(lp = db->pkgcache; lp; lp = lp->next) {
PMList *i;
pmpkg_t *pkg = lp->data;