aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-14 23:06:12 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-14 23:06:12 +0000
commit8550d870b3e74292353c237a1a3435253f8b2120 (patch)
tree1b0bb3bb4161abd97bf9e02791171d73f193f0fa /rpmdrake.pm
parent9d7fede6a09dbbc123ad2a94bea472898de2cc17 (diff)
downloadrpmdrake-8550d870b3e74292353c237a1a3435253f8b2120.tar
rpmdrake-8550d870b3e74292353c237a1a3435253f8b2120.tar.gz
rpmdrake-8550d870b3e74292353c237a1a3435253f8b2120.tar.bz2
rpmdrake-8550d870b3e74292353c237a1a3435253f8b2120.tar.xz
rpmdrake-8550d870b3e74292353c237a1a3435253f8b2120.zip
(choose_mirror) honnor canceling when the user refused to access the
network when adding a specific mirror from the menubar (#46027)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 14e07fac..1a1899a3 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -604,7 +604,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) {