summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-03 13:27:12 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-03 13:27:12 +0000
commitdef94be0af851c56224faa669131439fffe6fb7c (patch)
tree11f7392a09a9706e6f7ae9cafc749cc480a1abc2
parentd62b92f1a113aad498b2f3f1ebfaad6008211784 (diff)
downloadurpmi-def94be0af851c56224faa669131439fffe6fb7c.tar
urpmi-def94be0af851c56224faa669131439fffe6fb7c.tar.gz
urpmi-def94be0af851c56224faa669131439fffe6fb7c.tar.bz2
urpmi-def94be0af851c56224faa669131439fffe6fb7c.tar.xz
urpmi-def94be0af851c56224faa669131439fffe6fb7c.zip
(install) callback_open & callback_close are no more supported since
they are no more used
-rw-r--r--urpm/install.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index fbdb7ef1..29821e90 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -104,7 +104,7 @@ sub get_README_files {
#- install packages according to each hash (remove, install or upgrade).
#- options:
#- test, excludepath, nodeps, noorder (unused), delta,
-#- callback_open, callback_close, callback_inst, callback_trans, post_clean_cache
+#- callback_inst, callback_trans, post_clean_cache
#- (more options for trans->run)
#- excludedocs, nosize, noscripts, oldpackage, repackage, ignorearch
sub install {
@@ -159,13 +159,13 @@ sub install {
my $fh;
#- assume default value for some parameter.
$options{delta} ||= 1000;
- $options{callback_open} ||= sub {
+ $options{callback_open} = sub {
my ($_data, $_type, $id) = @_;
$index++;
$fh = urpm::sys::open_safe($urpm, '<', $install->{$id} || $upgrade->{$id});
$fh ? fileno $fh : undef;
};
- $options{callback_close} ||= sub {
+ $options{callback_close} = sub {
my ($urpm, undef, $pkgid) = @_;
return unless defined $pkgid;
get_README_files($urpm, $urpm->{depslist}[$pkgid]);