From e17bdd82d43373bcf7c93dc3f2a266213f175e18 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 4 Mar 2005 11:44:56 +0000 Subject: Add a wait message when downloading hdlists from network --- perl-install/pkgs.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/pkgs.pm') diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 4c100789a..f87b3b4e2 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -470,10 +470,13 @@ sub psUsingHdlist { #- for getting header of package during installation or after by urpmi. 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 %s", $hdlist)) if $::o->{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. symlinkf $newf, "/tmp/$hdlist"; + undef $w_wait; } my $newsf = "$urpmidir/synthesis.hdlist.$fakemedium.cz" . ($hdlist =~ /\.cz2/ && "2"); -- cgit v1.2.1