From f4ba56915b3bc0c1b286265c08c41c9bca6687c2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 16 Mar 2013 09:03:16 +0000 Subject: really enable callers to pass their own callback for erasure progress --- urpm/install.pm | 2 +- urpm/main_loop.pm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/urpm/install.pm b/urpm/install.pm index 6db6829a..35f3383a 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -320,7 +320,7 @@ Install packages according to each hash (remove, install or upgrade). options: test, excludepath, nodeps, noorder (unused), delta, - callback_inst, callback_trans, callback_report_uninst, + callback_inst, callback_trans, callback_report_uninst, callback_uninst, callback_open_helper, callback_close_helper, post_clean_cache, verbose (more options for trans->run) diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index d4864431..0eba7a27 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -221,6 +221,7 @@ sub _init_common_options { callback_inst => $callbacks->{inst}, callback_open_helper => $callbacks->{open_helper}, callback_trans => $callbacks->{trans}, + callback_uninst => $callbacks->{uninst}, callback_report_uninst => $callbacks->{callback_report_uninst}, raw_message => 1, ); @@ -412,6 +413,8 @@ Parameters: =item trans() called for transaction opening/progress/end +=item uninst(): called for erasure progress + =item error() called for cpio, script or unpacking errors =item callback_report_uninst(): called for erasure progrses -- cgit v1.2.1