aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-07-02 12:05:39 +0000
committerThierry Vignaud <tv@mandriva.org>2008-07-02 12:05:39 +0000
commitfc2124e224c18b8846b7c11c6878a2335a39c6dc (patch)
tree3d32752b44907ce5fae2160973b87db789a62204
parent2354ef60cb026f98e0b7a79049c2093c6c534138 (diff)
downloadrpmdrake-fc2124e224c18b8846b7c11c6878a2335a39c6dc.tar
rpmdrake-fc2124e224c18b8846b7c11c6878a2335a39c6dc.tar.gz
rpmdrake-fc2124e224c18b8846b7c11c6878a2335a39c6dc.tar.bz2
rpmdrake-fc2124e224c18b8846b7c11c6878a2335a39c6dc.tar.xz
rpmdrake-fc2124e224c18b8846b7c11c6878a2335a39c6dc.zip
(writeconf) add spacing
-rw-r--r--rpmdrake.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 74bd1891..f030963c 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -180,8 +180,10 @@ sub readconf() {
sub writeconf() {
unlink $configfile;
+
# special case:
$no_confirmation->[0] = $::rpmdrake_options{'no-confirmation'};
+
output $configfile, map { "$_ " . (ref ${$config{$_}{var}} ? join(' ', @${$config{$_}{var}}) : ()) . "\n" } keys %config;
}