summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/localedrake
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/localedrake')
-rwxr-xr-xperl-install/standalone/localedrake10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/standalone/localedrake b/perl-install/standalone/localedrake
index c4bbf16ef..231c528ea 100755
--- a/perl-install/standalone/localedrake
+++ b/perl-install/standalone/localedrake
@@ -34,21 +34,23 @@ if (defined $klang) {
my $locale = lang::read($>);
my $in = 'interactive'->vnew;
-$ugtk2::wm_icon = "localedrake";
+$ugtk3::wm_icon = "localedrake";
$::Wizard_title = N("LocaleDrake");
any::selectLanguage_and_more_standalone($in, $locale);
-if ($> && lang::IM2packages($locale)) {
+if ($>) {
+ my @required_packages = lang::IM2packages($locale);
+ my @missing_packages = difference2(\@required_packages, [ $in->do_pkgs->are_installed(@required_packages) ]);
$in->ask_warn(N("Warning"),
N("You should install the following packages: %s",
join(
#-PO: the following is used to combine packages names. eg: "initscripts, harddrake, yudit"
N(", "),
- lang::IM2packages($locale)
+ @missing_packages,
),
)
- );
+ ) if @missing_packages;
}
lang::write_and_install($locale, $in->do_pkgs, $>);