summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2022-11-20 15:53:34 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2022-11-20 15:53:34 +0000
commitd160699bbcbd707cf24e07b1a3a77896bf257cb5 (patch)
tree2badc288798f0655791334a511a6f10322c83f1a /perl-install/any.pm
parent3b45fb27771c561460b641ec1b760926fc39a69c (diff)
downloaddrakx-d160699bbcbd707cf24e07b1a3a77896bf257cb5.tar
drakx-d160699bbcbd707cf24e07b1a3a77896bf257cb5.tar.gz
drakx-d160699bbcbd707cf24e07b1a3a77896bf257cb5.tar.bz2
drakx-d160699bbcbd707cf24e07b1a3a77896bf257cb5.tar.xz
drakx-d160699bbcbd707cf24e07b1a3a77896bf257cb5.zip
any::ask_mirror() : handle case of mirror::nearest() returning nothing.
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 011fb4f73..a9f50af4f 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1908,7 +1908,7 @@ sub ask_mirror {
my $mirror = $o_url ? (find { $_->{url} eq $o_url } @$mirrors) || $give_url
#- use current time zone to select best mirror
- : mirror::nearest($in->{timezone}{timezone}, $mirrors);
+ : mirror::nearest($in->{timezone}{timezone}, $mirrors) || $give_url;
$in->ask_from_({ messages => N("Choose a mirror from which to get the packages"),
cancel => N("Cancel"),