From d05454ac639dbf52c17d9224e7b29439c6fbbd3f Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Sun, 20 Jul 2014 19:44:56 +0200 Subject: Country is changed, if the user cancel the previous action next time the country is wrong to use for comparing --- lib/AdminPanel/rpmdragora.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/AdminPanel') diff --git a/lib/AdminPanel/rpmdragora.pm b/lib/AdminPanel/rpmdragora.pm index ed68852c..02e7ac31 100644 --- a/lib/AdminPanel/rpmdragora.pm +++ b/lib/AdminPanel/rpmdragora.pm @@ -1026,7 +1026,7 @@ sub mirrors { my $pri_mirr = defined ($t2l{$tz}) ? $t2l{$tz} : $us; my $ind = 0; foreach (@{$pri_mirr}) { - if ($_ eq lc($mirror->{country})) { + if (($_ eq lc($mirror->{zone})) || ($_ eq lc($mirror->{country}))) { $goodness = scalar(@{$pri_mirr}) - $ind; } $ind ++; -- cgit v1.2.1