summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-01-30 22:42:45 +1000
committerAllan McRae <allan@archlinux.org>2011-02-04 09:55:45 +1000
commit01c3c7e4f28d837f0b8a6aaaf27d16894d4b762d (patch)
treedce1eecbcc7961ac318d7732e14dd9ded075048c /lib/libalpm/db.c
parent11e5e86151f83219b1cedbca31be7530911e25eb (diff)
downloadpacman-01c3c7e4f28d837f0b8a6aaaf27d16894d4b762d.tar.xz
Actually remove packages from pkghash on removal
Fully removes a package from the hash. Also unify prototype with removal from an alpm_list_t, fixing issues when removing a package from the pkgcache. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index c0c2f0ca..02f82823 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -617,7 +617,7 @@ int _alpm_db_remove_pkgfromcache(pmdb_t *db, pmpkg_t *pkg)
_alpm_log(PM_LOG_DEBUG, "removing entry '%s' from '%s' cache\n",
alpm_pkg_get_name(pkg), db->treename);
- db->pkgcache = _alpm_pkghash_remove(db->pkgcache, pkg, data);
+ db->pkgcache = _alpm_pkghash_remove(db->pkgcache, pkg, &data);
if(data == NULL) {
/* package not found */
_alpm_log(PM_LOG_DEBUG, "cannot remove entry '%s' from '%s' cache: not found\n",