summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 12:53:53 -0500
committerDan McGee <dan@archlinux.org>2011-06-03 12:53:53 -0500
commitd2f05f72f02e15164f2d83347317f15c7e8c4fb9 (patch)
treef017b96c52bf3cbbb7b69b67dd95217374955e87 /lib/libalpm/add.c
parent307a6de17a3bca9f8666b33aa3fb9a8dd88c300b (diff)
downloadpacman-d2f05f72f02e15164f2d83347317f15c7e8c4fb9.tar.xz
Remove global handle from remove.c
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index a95f4bcd..500fbde0 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -527,7 +527,7 @@ static int commit_single_pkg(pmpkg_t *newpkg, size_t pkg_current,
if(oldpkg) {
/* set up fake remove transaction */
- if(_alpm_upgraderemove_package(oldpkg, newpkg, trans) == -1) {
+ if(_alpm_upgraderemove_package(handle, oldpkg, newpkg) == -1) {
pm_errno = PM_ERR_TRANS_ABORT;
ret = -1;
goto cleanup;