summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-03 16:59:00 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-03 16:59:00 +0000
commit95ed32885421a4158c603f640862843c0c0ee480 (patch)
treee9e2c43b5862063088836e73bf86f26a699c2649 /urpm/install.pm
parentb697b6cb7f28d6b92da959b9a8df4a9d6e037e1c (diff)
downloadurpmi-95ed32885421a4158c603f640862843c0c0ee480.tar
urpmi-95ed32885421a4158c603f640862843c0c0ee480.tar.gz
urpmi-95ed32885421a4158c603f640862843c0c0ee480.tar.bz2
urpmi-95ed32885421a4158c603f640862843c0c0ee480.tar.xz
urpmi-95ed32885421a4158c603f640862843c0c0ee480.zip
(install) add more callbacks for installer
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 86d789fd..7598d6fe 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -227,12 +227,14 @@ sub install {
$options{callback_open} = sub {
my ($_data, $_type, $id) = @_;
$index++;
+ $options{callback_open_helper} and $options{callback_open_helper}->(@_);
$fh = urpm::sys::open_safe($urpm, '<', $install->{$id} || $upgrade->{$id});
$fh ? fileno $fh : undef;
};
$options{callback_close} = sub {
my ($urpm, undef, $pkgid) = @_;
return unless defined $pkgid;
+ $options{callback_close_helper} and $options{callback_close_helper}->(@_);
get_README_files($urpm, $trans, $urpm->{depslist}[$pkgid]);
close $fh if defined $fh;
};