aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-11 10:55:19 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-11 10:55:19 +0000
commit1a8cf63b6a60e3423a6230ef70a00751daf0412f (patch)
treec82a0f84f2b5e847d9bfc1f9fd2ef22eec3187f2
parentad605471f37bb48b1c0ebcff2b7bf64ccabe0a21 (diff)
downloadrpmdrake-1a8cf63b6a60e3423a6230ef70a00751daf0412f.tar
rpmdrake-1a8cf63b6a60e3423a6230ef70a00751daf0412f.tar.gz
rpmdrake-1a8cf63b6a60e3423a6230ef70a00751daf0412f.tar.bz2
rpmdrake-1a8cf63b6a60e3423a6230ef70a00751daf0412f.tar.xz
rpmdrake-1a8cf63b6a60e3423a6230ef70a00751daf0412f.zip
(writeconf) do not write chrooted .rpmdrake config file on exit when using --env
-rw-r--r--NEWS1
-rw-r--r--rpmdrake.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fbc07819..3c1cef03 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- when using --env:
+ o do not write chrooted .rpmdrake config file on exit
o open the chrooted .rpmdrake config file
- rpmdrake:
o enable to set 'noclean' option (#13522)
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 4634e850..aa35c6d1 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -189,6 +189,7 @@ sub readconf() {
}
sub writeconf() {
+ return if $::env;
unlink $configfile;
# special case: