# 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.
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