From ce2516d23b0c8f22e2aecddda7072b8a15f00244 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 14 Feb 2009 23:06:47 +0000 Subject: (choose_mirror) honnor canceling when the user refused to access the network when adding a specific mirror from the menubar (#46027) --- NEWS | 4 ++++ rpmdrake.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b47feb6c..3b547a18 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +- edit-urpm-sources: + o honnor canceling when the user refused to access the network when + adding a specific mirror from the menubar (#46027) + Version 5.0.5 - 10 February 2009, Thierry Vignaud - edit-urpm-sources: diff --git a/rpmdrake.pm b/rpmdrake.pm index 8ba96f26..8c152181 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -600,7 +600,7 @@ sub choose_mirror { my ($urpm, %options) = @_; delete $options{message}; my @transient_options = exists $options{transient} ? (transient => $options{transient}) : (); - warn_for_network_need($options{message}, %options); + warn_for_network_need($options{message}, %options) or return; my @mirrors = eval { mirrors($urpm, $options{want_base_distro}) }; my $error = $@; if ($error) { -- cgit v1.2.1