From 6dbb3408f45f260f4b56447b115b6a3bfb977ae7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 15 Mar 2007 22:38:13 +0000 Subject: (choose_mirror) catch error message early in case remove_wait_msg() alters it --- rpmdrake.pm | 4 ++-- 1 file 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: -- cgit v1.2.1