From 08b34b8aef5e5567c9f186ed9c6ae2b5a7aee47b Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 5 Apr 2005 17:21:08 +0000 Subject: [PATCH] added logs for cache generation --- lib/libalpm/cache.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include /* 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;