Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/cache.c')
-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;