summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-25 18:35:29 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-25 18:35:29 +0000
commit172ad665d4f6da5e51828f7b0277f91ed9b18db9 (patch)
treebf6e2aa2ef43bae51c7e637f39a4fa75f6068ee0
parent0502d0eba5b0688bdbc3df7eef57eff5a0929e10 (diff)
downloaddrakx-net-172ad665d4f6da5e51828f7b0277f91ed9b18db9.tar
drakx-net-172ad665d4f6da5e51828f7b0277f91ed9b18db9.tar.gz
drakx-net-172ad665d4f6da5e51828f7b0277f91ed9b18db9.tar.bz2
drakx-net-172ad665d4f6da5e51828f7b0277f91ed9b18db9.tar.xz
drakx-net-172ad665d4f6da5e51828f7b0277f91ed9b18db9.zip
be stricter when matching provider country
-rw-r--r--lib/network/netconnect.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index 2d0a60b..5a8e861 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -189,7 +189,8 @@ sub real_main {
@providers_data = $connection->get_providers;
require lang;
my $locale_country = lang::c2name($::o->{locale}{country} || lang::read()->{country});
- $provider_name = find { /^\Q$locale_country\E/ } sort(keys %{$providers_data[0]});
+ my $separator = $providers_data[1];
+ $provider_name = find { /^\Q$locale_country$separator\E/ } sort(keys %{$providers_data[0]});
},
name => sub { $net->{type}->get_type_name . "\n\n" . N("Please select your provider:") },
data => sub {