aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-01 15:02:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-01 15:02:38 +0000
commiteb3df7baf30b1c1bb23699925b7fc22f57ed6339 (patch)
treefc1d40db21fe55b27c33cc31c777aaa60987eafe /rpmdrake.pm
parent52495dddc217cd629d639897847f74003b064707 (diff)
downloadrpmdrake-eb3df7baf30b1c1bb23699925b7fc22f57ed6339.tar
rpmdrake-eb3df7baf30b1c1bb23699925b7fc22f57ed6339.tar.gz
rpmdrake-eb3df7baf30b1c1bb23699925b7fc22f57ed6339.tar.bz2
rpmdrake-eb3df7baf30b1c1bb23699925b7fc22f57ed6339.tar.xz
rpmdrake-eb3df7baf30b1c1bb23699925b7fc22f57ed6339.zip
Update config file when not run as root
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index b471de08..6a76d4fa 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -161,6 +161,7 @@ sub readconf {
}
sub writeconf {
+ unlink $configfile;
output $configfile, map { "$_ " . join(' ', @${$config{$_}{var}}) . "\n" } keys %config;
}