From 290364f5c8216dc3c17a2e9446865776df4cd684 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 26 May 2005 07:11:16 +0000 Subject: Show the "downloading hdlist" wait box only when downloading hdlist from a network medium --- perl-install/pkgs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index d895b07c2..836e1ba7b 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -468,7 +468,7 @@ sub psUsingHdlist { my $newf = "$urpmidir/hdlist.$fakemedium.cz" . ($hdlist =~ /\.cz2/ && "2"); unless ($o_nocopy) { my $w_wait; - $w_wait = $::o->wait_message(N("Please wait"), N("Downloading file %s...", $hdlist)) if $::o->{method} =~ /^(?:ftp|http|nfs)$/; + $w_wait = $::o->wait_message(N("Please wait"), N("Downloading file %s...", $hdlist)) if $method =~ /^(?:ftp|http|nfs)$/; -e $newf and do { unlink $newf or die "cannot remove $newf: $!" }; install_any::getAndSaveFile($o_fhdlist || "media/media_info/$hdlist", $newf) or do { unlink $newf; die "no $hdlist found" }; $m->{hdlist_size} = -s $newf; #- keep track of size for post-check. -- cgit v1.2.1