From d5e061896a35a49a50124949c2882ac9cbe94589 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 29 Aug 1999 20:15:36 +0000 Subject: no_comment --- perl-install/pkgs.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/pkgs.pm') diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 2a9947e60..3813cfcbc 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -248,7 +248,10 @@ sub install { log::ld("starting installation: ", $nb, " packages, ", $total, " bytes"); # !! do not translate these messages, they are used when catched (cf install_steps_graphical) - my $callbackOpen = sub { fileno install_any::getFile($_[0]) || log::l("bad file $_[0]") }; + my $callbackOpen = sub { + my $fd = install_any::getFile($_[0]) or log::l("bad file $_[0]"); + $fd ? fileno $fd : -1; + }; my $callbackClose = sub { }; my $callbackStart = sub { log::ld("starting installing package ", $_[0]) }; my $callbackProgress = sub { log::ld("progressing installation ", $_[0], "/", $_[1]) }; -- cgit v1.2.1