aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 14:12:39 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 14:12:39 +0000
commit6344550dcc74c84bf7c77c45ca329aa6458d55ee (patch)
treeced607bb396efd6cb3231910f528ab199f48c630 /Rpmdrake
parent0c9adc69d69314b1164d45631acd19cea273bd04 (diff)
downloadrpmdrake-6344550dcc74c84bf7c77c45ca329aa6458d55ee.tar
rpmdrake-6344550dcc74c84bf7c77c45ca329aa6458d55ee.tar.gz
rpmdrake-6344550dcc74c84bf7c77c45ca329aa6458d55ee.tar.bz2
rpmdrake-6344550dcc74c84bf7c77c45ca329aa6458d55ee.tar.xz
rpmdrake-6344550dcc74c84bf7c77c45ca329aa6458d55ee.zip
(run_rpm) skip empty environment variables
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index a3abf300..ed46174a 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -83,7 +83,7 @@ sub parse_compssUsers_flat() {
sub run_rpm {
foreach (qw(LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL)) {
- local $ENV{$_} = $ENV{$_} . '.UTF-8' if $ENV{$_} !~ /UTF-8/;
+ local $ENV{$_} = $ENV{$_} . '.UTF-8' if $ENV{$_} && $ENV{$_} !~ /UTF-8/;
}
my @l = `@_`;
wantarray() ? @l : join('', @l);