aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-20 19:44:56 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-20 19:44:56 +0200
commitd05454ac639dbf52c17d9224e7b29439c6fbbd3f (patch)
treeb1a23fffa08305848bb704176ad413c8472270e1 /lib/AdminPanel
parent89cd794235a1a02ee6d71d2e44bdc719fa56f03f (diff)
downloadmanatools-d05454ac639dbf52c17d9224e7b29439c6fbbd3f.tar
manatools-d05454ac639dbf52c17d9224e7b29439c6fbbd3f.tar.gz
manatools-d05454ac639dbf52c17d9224e7b29439c6fbbd3f.tar.bz2
manatools-d05454ac639dbf52c17d9224e7b29439c6fbbd3f.tar.xz
manatools-d05454ac639dbf52c17d9224e7b29439c6fbbd3f.zip
Country is changed, if the user cancel the previous action
next time the country is wrong to use for comparing
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/rpmdragora.pm2
1 files changed, 1 insertions, 1 deletions
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 ++;