diff options
author | Francois Pons <fpons@mandriva.com> | 2000-03-17 18:28:37 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-03-17 18:28:37 +0000 |
commit | c2291d42ccff39452769c2c5d1e62842765dcf7b (patch) | |
tree | 14ce67c307837e19500279e7d0133ac53933f329 /perl-install/common.pm | |
parent | 3622540f67228fabb5399876b5af89f37cf461be (diff) | |
download | drakx-c2291d42ccff39452769c2c5d1e62842765dcf7b.tar drakx-c2291d42ccff39452769c2c5d1e62842765dcf7b.tar.gz drakx-c2291d42ccff39452769c2c5d1e62842765dcf7b.tar.bz2 drakx-c2291d42ccff39452769c2c5d1e62842765dcf7b.tar.xz drakx-c2291d42ccff39452769c2c5d1e62842765dcf7b.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index 0e75369ce..777038e2e 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -367,11 +367,7 @@ sub template2file($$%) { local *OUT; local *IN; open IN, $inputfile or die "Can't open $inputfile $!"; - if ($::testing) { - *OUT = *STDOUT; - } else { - open OUT, ">$outputfile" or die "Can't open $outputfile $!"; - } + open OUT, ">$outputfile" or die "Can't open $outputfile $!"; map { s/@@@(.*?)@@@/$toreplace{$1}/g; print OUT; } <IN>; } |