summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:30:38 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 16:30:38 +0000
commit826190fb4bcf8dd37ff99bcda075bcd086cc8847 (patch)
tree9413ea6c630b342bfae8266f0297e779a5241709 /common
parenta9b571022bcd13399eb5aa10d1b390f952daeaa2 (diff)
downloaddrakwizard-826190fb4bcf8dd37ff99bcda075bcd086cc8847.tar
drakwizard-826190fb4bcf8dd37ff99bcda075bcd086cc8847.tar.gz
drakwizard-826190fb4bcf8dd37ff99bcda075bcd086cc8847.tar.bz2
drakwizard-826190fb4bcf8dd37ff99bcda075bcd086cc8847.tar.xz
drakwizard-826190fb4bcf8dd37ff99bcda075bcd086cc8847.zip
(commit) do not reinvent output()
Diffstat (limited to 'common')
-rw-r--r--common/Varspaceval.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/Varspaceval.pm b/common/Varspaceval.pm
index e934ada2..0da4393c 100644
--- a/common/Varspaceval.pm
+++ b/common/Varspaceval.pm
@@ -11,6 +11,7 @@ package MDK::Wizard::Varspaceval;
#use lib('./');
use strict;
use Data::Dumper;
+use MDK::Common;
# Get all useful content of the config file
# Return a hash containg the key and the value
@@ -78,9 +79,7 @@ sub commit {
#print "\n------------------\n";
# outputing the new conf
- open(F, "> $file") or return;
- print F $output;
- close(F);
+ output($file, $output);
}
1;