aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-01-29 17:56:18 +0000
committerThierry Vignaud <tv@mageia.org>2013-01-29 17:56:18 +0000
commit31f847ff80562e1a47f4bc87565325243e1e2e3b (patch)
tree0c8dce244b23f4ef16f438d593cb5a1f06256e37 /URPM.pm
parent3fd6b485cbafd6a89a79d6227ec442544827a973 (diff)
downloadperl-URPM-31f847ff80562e1a47f4bc87565325243e1e2e3b.tar
perl-URPM-31f847ff80562e1a47f4bc87565325243e1e2e3b.tar.gz
perl-URPM-31f847ff80562e1a47f4bc87565325243e1e2e3b.tar.bz2
perl-URPM-31f847ff80562e1a47f4bc87565325243e1e2e3b.tar.xz
perl-URPM-31f847ff80562e1a47f4bc87565325243e1e2e3b.zip
add support for callback_error
Diffstat (limited to 'URPM.pm')
-rw-r--r--URPM.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/URPM.pm b/URPM.pm
index 2be89b1..cdcf4f2 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -779,6 +779,7 @@ It's usually the $urpm object.
Recognized options are:
callback_close => sub { ... }
+ callback_error => sub { ... }
callback_inst => sub { ... }
callback_open => sub { ... }
callback_trans => sub { ... }
@@ -803,7 +804,8 @@ C<$cb_type> is one of 'open' or 'close'.
Other Callbacks signature is callback(C<$data>, C<$cb_type>, C<$pkg_id>, C<$subtype>, C<$amout>, C<$total>)
-C<$cb_type> is one of 'inst', 'trans' or 'uninst'. C<$subtype> can be 'start', 'progress' or 'stop'.
+C<$cb_type> is one of 'error', 'inst', 'trans' or 'uninst'. C<$subtype> can be 'start', 'progress' or 'stop'.
+For 'error', it can be 'cpio', 'script' or 'unpack'.
The purpose of those callbacks is to report progress (the two last parameters (C<$amount> & C<$total>) enable to compute progress percentage).