diff options
author | Peter Palfrader <peter@palfrader.org> | 2021-05-23 15:20:47 +0200 |
---|---|---|
committer | Laura Arjona Reina <larjona@debian.org> | 2021-06-04 12:59:14 +0000 |
commit | 42e0d7862f141c8b262c8f60f027fc1a885ac5a7 (patch) | |
tree | c5b8548ba0692aff987b9bd99a23540cd8329516 /english/mirror | |
parent | 444658633a9bc2f06d4349f042099f22153f15a3 (diff) |
mirror/mirror_list: in compact output, do not print warnings if a mirror does not have a country
Diffstat (limited to 'english/mirror')
-rwxr-xr-x | english/mirror/mirror_list.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/english/mirror/mirror_list.pl b/english/mirror/mirror_list.pl index de4156837c1..93b7372b68d 100755 --- a/english/mirror/mirror_list.pl +++ b/english/mirror/mirror_list.pl @@ -1030,8 +1030,8 @@ sub compact_list($$) { } foreach my $site (sort keys %our_mirrors) { my $id = $our_mirrors{$site}; - my $countryplain = $plain_name_of_country{ $mirror[$id]{country} }; - my $countrycode = $code_of_country{ $mirror[$id]{country} }; + my $countryplain = exists $mirror[$id]{country} ? $plain_name_of_country{ $mirror[$id]{country} } : ''; + my $countrycode = exists $mirror[$id]{country} ? $code_of_country{ $mirror[$id]{country} } : ''; print "<li>" . $mirror[$id]{site}; if ($countrycode ne ''){print " (<".$countrycode."c>)"} print ": "; |