From 8251c154b88d4c32bcb96cf80e8cd4bcf526a24b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 5 Sep 2002 12:15:23 +0000 Subject: workaround kde control center calling localedrake with an empty kde lang --- perl-install/standalone/localedrake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/localedrake') diff --git a/perl-install/standalone/localedrake b/perl-install/standalone/localedrake index ef72f498e..499fa6350 100644 --- a/perl-install/standalone/localedrake +++ b/perl-install/standalone/localedrake @@ -15,7 +15,8 @@ foreach (@ARGV) { $klang = $1 if /--kde_lang=(.*)/; $country = $1 if /--kde_country=(.*)/; } -if ($klang) { +if (defined $klang) { + $klang or exit; my $lang = lang::kde_lang_country2lang($klang, $country); lang::write('', $lang, $>, 'dont_touch_kde_files') if $apply; -- cgit v1.2.1