diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-19 15:05:41 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-19 15:05:41 +0000 |
commit | cab295b9f59f0168492c62df8913e5daa171df0d (patch) | |
tree | ccd6b20fe17a21561ca3137f0564a377595dc899 /lib/libalpm | |
parent | 001526a67b9ff49f338ac3d532f0df84bddc03cc (diff) |
Yet another "added three times" issue.
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/add.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 05468177..bb704ae2 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -270,32 +270,6 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data) } EVENT(trans, PM_TRANS_EVT_CLEANUP_DONE, NULL, NULL); - /* Cleaning up - */ - EVENT(trans, PM_TRANS_EVT_CLEANUP_START, NULL, NULL); - _alpm_log(PM_LOG_FLOW1, _("cleaning up")); - for (lp=trans->packages; lp!=NULL; lp=lp->next) { - info=(pmpkg_t *)lp->data; - for (rmlist=info->removes; rmlist!=NULL; rmlist=rmlist->next) { - snprintf(rm_fname, PATH_MAX, "%s%s", handle->root, (char *)rmlist->data); - remove(rm_fname); - } - } - EVENT(trans, PM_TRANS_EVT_CLEANUP_DONE, NULL, NULL); - - /* Cleaning up - */ - EVENT(trans, PM_TRANS_EVT_CLEANUP_START, NULL, NULL); - _alpm_log(PM_LOG_FLOW1, _("cleaning up")); - for (lp=trans->packages; lp!=NULL; lp=lp->next) { - info=(pmpkg_t *)lp->data; - for (rmlist=info->removes; rmlist!=NULL; rmlist=rmlist->next) { - snprintf(rm_fname, PATH_MAX, "%s%s", handle->root, (char *)rmlist->data); - remove(rm_fname); - } - } - EVENT(trans, PM_TRANS_EVT_CLEANUP_DONE, NULL, NULL); - /* Check for file conflicts */ if(!(trans->flags & PM_TRANS_FLAG_FORCE)) { |