From 31f847ff80562e1a47f4bc87565325243e1e2e3b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 29 Jan 2013 17:56:18 +0000 Subject: add support for callback_error --- URPM.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'URPM.pm') 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). -- cgit v1.2.1