summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index dd92e6a25..e0cd40286 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -910,9 +910,9 @@ sub summary {
clicked => sub {
any::selectCountry($o, $o->{locale}) or return;
- #- this is somehow broken so catching errors (eg: lang=nb and country=NO)
my $pkg_locale = substr(lang::getlocale_for_country($o->{locale}{lang}, $o->{locale}{country}), 0, 2);
- eval { $o->do_pkgs->install("locales-$pkg_locale") };
+ my @pkgs = pkgs::packagesProviding($o->{packages}, "locales-$pkg_locale");
+ $o->pkg_install(map { $_->name } @pkgs) if @pkgs;
lang::write($o->{prefix}, $o->{locale});
if (!$timezone_manually_set) {