From 4e37100fe4c9be3d406606a7d3efd004035c88d5 Mon Sep 17 00:00:00 2001 From: Daniel Robbins Date: Tue, 11 Nov 2003 06:42:14 +0000 Subject: [PATCH] make.conf handling simplification git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@77 d1e1f19c-881f-0410-ab34-b69fee027534 --- modules/targets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/targets.py b/modules/targets.py index b6dc1034..08ab5cde 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -156,8 +156,7 @@ class generic_stage_target(generic_target): def chroot_setup(self): cmd("cp /etc/resolv.conf "+self.settings["chroot_path"]+"/etc","Could not copy resolv.conf into place.") - if os.path.exists(self.settings["chroot_path"]+"/etc/make.conf"): - cmd("mv "+self.settings["chroot_path"]+"/etc/make.conf "+self.settings["chroot_path"]+"/etc/make.conf.orig") + cmd("rm -f "+self.settings["chroot_path"]+"/etc/make.conf") myf=open(self.settings["chroot_path"]+"/etc/make.conf","w") myf.write("# These settings were set by the catalyst build script that automatically built this stage\n") -- 2.26.2