From 12d352708ab3877a8fc027cefa1c284cf511d6d7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 3 Mar 2009 17:10:53 +0000 Subject: (install) drop file handle management code from open callback (now done by urpmi) --- perl-install/install/pkgs.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index b0767211d..9387cab99 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -728,7 +728,6 @@ sub _install_raw { my ($retry, $retry_count); log::l("rpm transactions start"); - my $fd; #- since we return the "fileno", perl does not know we're still using it, and so closes it, and :-( my $exit_code = urpm::main_loop::run($packages, $packages->{state}, undef, undef, undef, { open_unused => sub { @@ -736,11 +735,7 @@ sub _install_raw { &$callback; my $pkg = defined $id && $packages->{depslist}[$id]; my $medium = packageMedium($packages, $pkg); - my $f = $pkg && install::media::rel_rpm_file($medium, $pkg->filename); print $LOG "$f\n"; - undef $fd; - $fd = getFile_($medium->{phys_medium}, $f); - $fd ? fileno $fd : -1; }, close_unused => sub { my ($packages, $_type, $id) = @_; &$callback; -- cgit v1.2.1