summaryrefslogtreecommitdiffstats
path: root/MDK
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-05-27 05:34:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-05-27 05:34:47 +0000
commit6ab064d983971735835001abc2b8568871d6c00c (patch)
tree29c623ef8ab26f6d334db795ceb1fdf1d8f3946b /MDK
parent9f74cbe08823afc6a6efcb1f2c2dad52a5d92e88 (diff)
downloadperl-MDK-Common-6ab064d983971735835001abc2b8568871d6c00c.tar
perl-MDK-Common-6ab064d983971735835001abc2b8568871d6c00c.tar.gz
perl-MDK-Common-6ab064d983971735835001abc2b8568871d6c00c.tar.bz2
perl-MDK-Common-6ab064d983971735835001abc2b8568871d6c00c.tar.xz
perl-MDK-Common-6ab064d983971735835001abc2b8568871d6c00c.zip
fix addVarsInSh() with no fields
Diffstat (limited to 'MDK')
-rw-r--r--MDK/Common/System.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm
index c0dfbb2..ff94cd3 100644
--- a/MDK/Common/System.pm
+++ b/MDK/Common/System.pm
@@ -350,7 +350,7 @@ sub addVarsInSh {
sub addVarsInShMode {
my ($file, $mod, $l, @fields) = @_;
- my %l = map { $_ => $l->{$_} } @fields;
+ my %l = @fields ? map { $_ => $l->{$_} } @fields : %$l;
my %l2 = getVarsFromSh($file);
# below is add2hash_(\%l, \%l2);