From 394d645aaece3fc31e5b9db66b5757c343f056d2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 25 Nov 2002 17:52:47 +0000 Subject: since we use the "fileno", perl doesn't know we're still using the filehandle, and so closes it, and :-( --- perl-install/pkgs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 111139316..1bca0d103 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -998,13 +998,14 @@ sub install($$$;$$) { $trans->set_script_fd(fileno LOG); log::l("rpm transactions start"); + my $fd; #- since we return the "fileno", perl doesn't know we're still using it, and so closes it, and :-( my @probs = $trans->run($packages, force => 1, nosize => 1, callback_open => sub { my ($data, $type, $id) = @_; my $pkg = defined $id && $data->{depslist}[$id]; my $medium = packageMedium($packages, $pkg); my $f = $pkg && $pkg->filename; print LOG "$f\n"; - my $fd = install_any::getFile($f, $medium->{descr}); + $fd = install_any::getFile($f, $medium->{descr}); $fd ? fileno $fd : -1; }, callback_close => sub { my ($data, $type, $id) = @_; -- cgit v1.2.1