From 18670bc273165acfefd4ea1ee57cff3825a683d6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Sep 2018 13:13:25 +0200 Subject: fix callback parameters doc should have been done along commit b5249dafb882fbc105f05853c80fd30503d57a3f which reverted commit b0cd1853933d8c68610c9e173721525c6a17e8ce --- NEWS | 2 ++ URPM.pm | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 64bf644..cb67aa0 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- fix callback parameters doc + Version 5.20 - 16 September 2018 - restore support for rpm < 4.14.2 diff --git a/URPM.pm b/URPM.pm index 2ad8f5f..77a5ae6 100644 --- a/URPM.pm +++ b/URPM.pm @@ -887,13 +887,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>, C). It _must_ return a file handler for the asked package. +'callback_open' signature is (C<$data>, C<$cb_type>, C<$pkg_id>). It _must_ return a file handler for the asked package. -'callback_close' signature is (C<$data>, C<$cb_type>, C<$pkg_id>, C). 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>). 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>, C) +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 'elem', 'error', 'inst', 'trans' or 'uninst'. C<$subtype> can be 'start', 'progress' or 'stop'. For 'error', it can be 'cpio', 'script' or 'unpack'. -- cgit v1.2.1