summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-03 00:25:45 +0200
committerDan McGee <dan@archlinux.org>2011-05-05 19:08:59 +0200
commit3045f09ef49d775fec5e772f5f8b894e31388fbf (patch)
treeca2c076dd353e61e1f0e7b8a73261896ed22fb00 /lib/libalpm/be_sync.c
parent73c74355abf0f6759a2f9a9219ea571444b6495a (diff)
downloadpacman-3045f09ef49d775fec5e772f5f8b894e31388fbf.tar.gz
pacman-3045f09ef49d775fec5e772f5f8b894e31388fbf.tar.xz
Logging changes during DB load
The switch from FUNCTION to DEBUG was ill-advised inside the local database load. Instead, add a DEBUG level logger to both local and sync database loads that shows the number of packages processed. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index a5633611..c38e232c 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -327,6 +327,8 @@ static int sync_db_populate(pmdb_t *db)
db->pkgcache->list = alpm_list_msort(db->pkgcache->list, (size_t)count, _alpm_pkg_cmp);
}
archive_read_finish(archive);
+ _alpm_log(PM_LOG_DEBUG, "added %d packages to package cache for db '%s'\n",
+ count, db->treename);
return count;
}