summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-25 17:52:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-25 17:52:47 +0000
commit394d645aaece3fc31e5b9db66b5757c343f056d2 (patch)
tree82ac186b5dc677b561c04206a4eee1101be2faf2 /perl-install
parent307e05ee53ac840106659e71d751e0603175b028 (diff)
downloaddrakx-backup-do-not-use-394d645aaece3fc31e5b9db66b5757c343f056d2.tar
drakx-backup-do-not-use-394d645aaece3fc31e5b9db66b5757c343f056d2.tar.gz
drakx-backup-do-not-use-394d645aaece3fc31e5b9db66b5757c343f056d2.tar.bz2
drakx-backup-do-not-use-394d645aaece3fc31e5b9db66b5757c343f056d2.tar.xz
drakx-backup-do-not-use-394d645aaece3fc31e5b9db66b5757c343f056d2.zip
since we use the "fileno", perl doesn't know we're still using the filehandle, and so closes it, and :-(
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/pkgs.pm3
1 files changed, 2 insertions, 1 deletions
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) = @_;