diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-07-20 19:44:56 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-07-20 19:44:56 +0200 |
commit | d05454ac639dbf52c17d9224e7b29439c6fbbd3f (patch) | |
tree | b1a23fffa08305848bb704176ad413c8472270e1 /lib/AdminPanel/rpmdragora.pm | |
parent | 89cd794235a1a02ee6d71d2e44bdc719fa56f03f (diff) | |
download | manatools-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/rpmdragora.pm')
-rw-r--r-- | lib/AdminPanel/rpmdragora.pm | 2 |
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 ++; |