summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-16 09:03:16 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-16 09:03:16 +0000
commitf4ba56915b3bc0c1b286265c08c41c9bca6687c2 (patch)
tree66c7dc7b5d0b8ea82f653afd942b54c22962c1d2
parent725a05e33713f34c92c86bae92b65cbe7a78bddb (diff)
downloadurpmi-f4ba56915b3bc0c1b286265c08c41c9bca6687c2.tar
urpmi-f4ba56915b3bc0c1b286265c08c41c9bca6687c2.tar.gz
urpmi-f4ba56915b3bc0c1b286265c08c41c9bca6687c2.tar.bz2
urpmi-f4ba56915b3bc0c1b286265c08c41c9bca6687c2.tar.xz
urpmi-f4ba56915b3bc0c1b286265c08c41c9bca6687c2.zip
really enable callers to pass their own callback for erasure progress
-rw-r--r--urpm/install.pm2
-rw-r--r--urpm/main_loop.pm3
2 files changed, 4 insertions, 1 deletions
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