aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-15 22:38:13 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-15 22:38:13 +0000
commit6dbb3408f45f260f4b56447b115b6a3bfb977ae7 (patch)
treeffe68985ca7f6231f2b522b6f7311a3fa8b9be62 /rpmdrake.pm
parent63348ce64c263b3763d71974dcb8bff5bd2cde57 (diff)
downloadrpmdrake-6dbb3408f45f260f4b56447b115b6a3bfb977ae7.tar
rpmdrake-6dbb3408f45f260f4b56447b115b6a3bfb977ae7.tar.gz
rpmdrake-6dbb3408f45f260f4b56447b115b6a3bfb977ae7.tar.bz2
rpmdrake-6dbb3408f45f260f4b56447b115b6a3bfb977ae7.tar.xz
rpmdrake-6dbb3408f45f260f4b56447b115b6a3bfb977ae7.zip
(choose_mirror) catch error message early in case remove_wait_msg() alters it
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index ff87db3a..6a29dd44 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -551,9 +551,9 @@ Is it ok to continue?");
@transient_options
);
my @mirrors = eval { mirrors('/var/cache/urpmi', $options{want_base_distro}) };
+ my $msg = $@;
remove_wait_msg($wait);
- if ($@) {
- my $msg = $@; #- seems that value is bitten before being printed by next func..
+ if ($msg) {
interactive_msg(N("Error during download"),
($branded
? N("There was an error downloading the mirror list: