summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2009-06-10 20:22:04 +0200
committerDan McGee <dan@archlinux.org>2009-06-13 09:57:59 -0500
commitf250b034b407d45bb08c7b713b01d25e0bb2b6ee (patch)
treefbea533e746862513e5e0953b28a17a37dfae8c4 /lib
parentef500b44ce45255da16e18b8e9aa4d43fab359b8 (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 6645335b..aed1a916 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -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 */
tr_remove->cb_event = trans->cb_event;
+ tr_remove->cb_progress = trans->cb_progress;
if(_alpm_trans_commit(tr_remove, NULL) == -1) {
_alpm_log(PM_LOG_ERROR, _("could not commit removal transaction\n"));
goto error;