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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 3e1c230a..f8942002 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -92,8 +92,6 @@ int db_add_pkgincache(pmdb_t *db, pmpkg_t *pkg)
{
pmpkg_t *newpkg;
- _alpm_log(PM_LOG_FUNCTION, "[db_add_pkgincache] called");
-
if(db == NULL || pkg == NULL) {
return(-1);
}
@@ -102,6 +100,7 @@ int db_add_pkgincache(pmdb_t *db, pmpkg_t *pkg)
if(newpkg == NULL) {
return(-1);
}
+ _alpm_log(PM_LOG_DEBUG, "adding entry %s in \"%s\" cache", newpkg->name, db->treename);
db->pkgcache = pm_list_add_sorted(db->pkgcache, newpkg, pkg_cmp);
db_free_grpcache(db);
@@ -118,8 +117,6 @@ int db_remove_pkgfromcache(pmdb_t *db, char *name)
return(-1);
}
- _alpm_log(PM_LOG_FUNCTION, "[db_remove_pkgfromcache] called");
-
for(i = db->pkgcache; i && !found; i = i->next) {
if(strcmp(((pmpkg_t *)i->data)->name, name) == 0) {
_alpm_log(PM_LOG_DEBUG, "removing entry %s from \"%s\" cache", name, db->treename);