diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-03 19:33:18 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-03 19:33:18 +0200 |
commit | 7fc635fee071e18d0422a4773937e66960be96b2 (patch) | |
tree | 56d4a8d16bddc6ee416501a099ca06606475a3a6 /lib/libalpm/remove.c | |
parent | de36c5fac4ab50259418c3850b6fb25b96b702f3 (diff) | |
download | pacman-7fc635fee071e18d0422a4773937e66960be96b2.tar.gz pacman-7fc635fee071e18d0422a4773937e66960be96b2.tar.xz |
Remove global handle from util.c
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r-- | lib/libalpm/remove.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index c983edba..2adcd267 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -385,8 +385,8 @@ int _alpm_remove_packages(pmtrans_t *trans, pmdb_t *db) /* run the pre-remove scriptlet if it exists */ if(alpm_pkg_has_scriptlet(info) && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) { - _alpm_runscriptlet(handle->root, scriptlet, "pre_remove", - alpm_pkg_get_version(info), NULL, trans); + _alpm_runscriptlet(handle, scriptlet, "pre_remove", + alpm_pkg_get_version(info), NULL); } if(!(trans->flags & PM_TRANS_FLAG_DBONLY)) { @@ -430,8 +430,8 @@ int _alpm_remove_packages(pmtrans_t *trans, pmdb_t *db) /* run the post-remove script if it exists */ if(alpm_pkg_has_scriptlet(info) && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) { - _alpm_runscriptlet(handle->root, scriptlet, "post_remove", - alpm_pkg_get_version(info), NULL, trans); + _alpm_runscriptlet(handle, scriptlet, "post_remove", + alpm_pkg_get_version(info), NULL); } /* remove the package from the database */ @@ -451,7 +451,7 @@ int _alpm_remove_packages(pmtrans_t *trans, pmdb_t *db) } /* run ldconfig if it exists */ - _alpm_ldconfig(handle->root); + _alpm_ldconfig(handle); return 0; } |