From d160699bbcbd707cf24e07b1a3a77896bf257cb5 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 20 Nov 2022 15:53:34 +0000 Subject: any::ask_mirror() : handle case of mirror::nearest() returning nothing. --- perl-install/any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/any.pm') 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"), -- cgit v1.2.1