aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-04-14 16:49:13 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-04-14 18:08:40 +0200
commit46336d0faed638623c6d7ace1abb3790ac3f8a4c (patch)
treebd69abbe70cfe6d58280342f5e69d2658de10452 /URPM.pm
parent0614f7884b17c20e6e502dc2a32289c9e7682dfc (diff)
downloadperl-URPM-46336d0faed638623c6d7ace1abb3790ac3f8a4c.tar
perl-URPM-46336d0faed638623c6d7ace1abb3790ac3f8a4c.tar.gz
perl-URPM-46336d0faed638623c6d7ace1abb3790ac3f8a4c.tar.bz2
perl-URPM-46336d0faed638623c6d7ace1abb3790ac3f8a4c.tar.xz
perl-URPM-46336d0faed638623c6d7ace1abb3790ac3f8a4c.zip
add support for "elem" callback
This callback will be fired before each pkg being installed/removed Needs rpm >= rpm-4.13.0-0.rc1.28
Diffstat (limited to 'URPM.pm')
-rw-r--r--URPM.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/URPM.pm b/URPM.pm
index 25c6564..a429f25 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -868,6 +868,7 @@ It's usually the $urpm object.
Recognized options are:
callback_close => sub { ... }
+ callback_elem => sub { ... }
callback_error => sub { ... }
callback_inst => sub { ... }
callback_open => sub { ... }
@@ -893,7 +894,7 @@ 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<pkg_name>)
-C<$cb_type> is one of 'error', 'inst', 'trans' or 'uninst'. C<$subtype> can be 'start', 'progress' or 'stop'.
+C<$cb_type> is one of 'elem', '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).