summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-04 11:44:56 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-04 11:44:56 +0000
commite17bdd82d43373bcf7c93dc3f2a266213f175e18 (patch)
tree96fe5cb787ddfe5ad1e9ad9954462e5303ef30e9 /perl-install/pkgs.pm
parentc9bce49edb95981c46bda5f68983ac21dd246b0c (diff)
downloaddrakx-backup-do-not-use-e17bdd82d43373bcf7c93dc3f2a266213f175e18.tar
drakx-backup-do-not-use-e17bdd82d43373bcf7c93dc3f2a266213f175e18.tar.gz
drakx-backup-do-not-use-e17bdd82d43373bcf7c93dc3f2a266213f175e18.tar.bz2
drakx-backup-do-not-use-e17bdd82d43373bcf7c93dc3f2a266213f175e18.tar.xz
drakx-backup-do-not-use-e17bdd82d43373bcf7c93dc3f2a266213f175e18.zip
Add a wait message when downloading hdlists from network
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm3
1 files changed, 3 insertions, 0 deletions
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");