diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-02-23 10:58:56 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-02-26 19:02:12 +0100 |
commit | b0cd1853933d8c68610c9e173721525c6a17e8ce (patch) | |
tree | 0791961522b6af3060b4a75fe88800ec144cd2b7 /URPM.pm | |
parent | e1143e85b339f28c00f2682c326a1ff8d92a91e7 (diff) | |
download | perl-URPM-b0cd1853933d8c68610c9e173721525c6a17e8ce.tar perl-URPM-b0cd1853933d8c68610c9e173721525c6a17e8ce.tar.gz perl-URPM-b0cd1853933d8c68610c9e173721525c6a17e8ce.tar.bz2 perl-URPM-b0cd1853933d8c68610c9e173721525c6a17e8ce.tar.xz perl-URPM-b0cd1853933d8c68610c9e173721525c6a17e8ce.zip |
callbacks now get pkg name instead of just pkg id
thus fixing unknown package name on erases (mga#15032)
Diffstat (limited to 'URPM.pm')
-rw-r--r-- | URPM.pm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -885,13 +885,13 @@ Recognized options are: They roughly correspond to command-line options to rpm(1). -'callback_open' signature is (C<$data>, C<$cb_type>, C<$pkg_id>). It _must_ return a file handler for the asked package. +'callback_open' signature is (C<$data>, C<$cb_type>, C<$pkg_id>, C<pkg_name>). It _must_ return a file handler for the asked package. -'callback_close' signature is (C<$data>, C<$cb_type>, C<$pkg_id>). It is called just before URPM close the fd for the installed package. +'callback_close' signature is (C<$data>, C<$cb_type>, C<$pkg_id>, C<pkg_name>). It is called just before URPM close the fd for the installed package. 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>) +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'. For 'error', it can be 'cpio', 'script' or 'unpack'. |