libalpm/remove.c : revert part of commit to fix remove044 pactest
In 1c9f30b9fa
This change should be done AFTER the TODO in recursedeps is implemented.
Then we'll be able to first sort the list, then call recursedeps which keeps
it sorted. For now, the sorting should still be done as the last step.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
b5ab4bffb7
commit
edcefb1d58
1 changed files with 5 additions and 5 deletions
|
@ -135,6 +135,11 @@ int _alpm_remove_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(trans->flags & PM_TRANS_FLAG_RECURSE) {
|
||||||
|
_alpm_log(PM_LOG_DEBUG, "finding removable dependencies");
|
||||||
|
_alpm_recursedeps(db, &trans->packages, 0);
|
||||||
|
}
|
||||||
|
|
||||||
/* re-order w.r.t. dependencies */
|
/* re-order w.r.t. dependencies */
|
||||||
_alpm_log(PM_LOG_DEBUG, "sorting by dependencies");
|
_alpm_log(PM_LOG_DEBUG, "sorting by dependencies");
|
||||||
lp = _alpm_sortbydeps(trans->packages, PM_TRANS_TYPE_REMOVE);
|
lp = _alpm_sortbydeps(trans->packages, PM_TRANS_TYPE_REMOVE);
|
||||||
|
@ -142,11 +147,6 @@ int _alpm_remove_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data)
|
||||||
alpm_list_free(trans->packages);
|
alpm_list_free(trans->packages);
|
||||||
trans->packages = lp;
|
trans->packages = lp;
|
||||||
|
|
||||||
if(trans->flags & PM_TRANS_FLAG_RECURSE) {
|
|
||||||
_alpm_log(PM_LOG_DEBUG, "finding removable dependencies");
|
|
||||||
_alpm_recursedeps(db, &trans->packages, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
EVENT(trans, PM_TRANS_EVT_CHECKDEPS_DONE, NULL, NULL);
|
EVENT(trans, PM_TRANS_EVT_CHECKDEPS_DONE, NULL, NULL);
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue