From f78ee187ae3cdccfbd45a5a1c5ac59582a6aa8b0 Mon Sep 17 00:00:00 2001 From: "John P. Davis" Date: Wed, 14 Jul 2004 04:26:45 +0000 Subject: [PATCH] small bugfix to cdroot cleaning handling git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@417 d1e1f19c-881f-0410-ab34-b69fee027534 --- modules/livecd_stage2_target.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/livecd_stage2_target.py b/modules/livecd_stage2_target.py index 4c587495..09c37bb1 100644 --- a/modules/livecd_stage2_target.py +++ b/modules/livecd_stage2_target.py @@ -1,6 +1,6 @@ # Distributed under the GNU General Public License version 2 # Copyright 2003-2004 Gentoo Technologies, Inc. -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage2_target.py,v 1.13 2004/07/13 15:42:12 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage2_target.py,v 1.14 2004/07/14 04:26:45 zhen Exp $ """ Builder class for a LiveCD stage2 build. @@ -241,8 +241,11 @@ class livecd_stage2_target(generic_stage_target): print "cleaning previous livecd-stage2 build" cmd("rm -rf "+self.settings["cdroot_path"], "Could not remove existing directory: "+self.settings["cdroot_path"]) + + if not os.path.exists(self.settings["cdroot_path"]): os.makedirs(self.settings["cdroot_path"]) - touch(self.settings["chroot_path"]+"/tmp/.clst_run_local_cdroot_clean") + + touch(self.settings["chroot_path"]+"/tmp/.clst_run_local_cdroot_clean") # the runscripts do the real building, so execute them now # this is the part that we want to resume on since it is the most time consuming -- 2.26.2