Enable remove progressbar with -S (conflict resolving)

$ sudo pacman -S mc

Old output:
***********
:: mc conflicts with mc-mp. Remove mc-mp? [Y/n] y
...
(1/1) checking for file conflicts                   [################] 100%
(1/1) installing mc                                 [################] 100%

New output:
***********
:: mc conflicts with mc-mp. Remove mc-mp? [Y/n] y
...
(1/1) checking for file conflicts                   [################] 100%
(1/1) removing mc-mp                                [################] 100%
(1/1) installing mc                                 [################] 100%

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Nagy Gabor 2009-06-10 20:22:04 +02:00 committed by Dan McGee
parent ef500b44ce
commit f250b034b4

View file

@ -930,6 +930,7 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
} }
/* we want the frontend to be aware of commit details */ /* we want the frontend to be aware of commit details */
tr_remove->cb_event = trans->cb_event; tr_remove->cb_event = trans->cb_event;
tr_remove->cb_progress = trans->cb_progress;
if(_alpm_trans_commit(tr_remove, NULL) == -1) { if(_alpm_trans_commit(tr_remove, NULL) == -1) {
_alpm_log(PM_LOG_ERROR, _("could not commit removal transaction\n")); _alpm_log(PM_LOG_ERROR, _("could not commit removal transaction\n"));
goto error; goto error;