# Distributed under the GPL v2
# $Id$
+ 12 Sep 2009; Andrew Gaffney <agaffney@gentoo.org>
+ modules/catalyst/target/generic_stage.py:
+ Set a default value for livecd/iso
+
12 Sep 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
Move commandline parsing to function
os.makedirs(self.settings["storedir"]+"/builds/")
def set_iso(self):
- if "iso" in self.settings:
- if self.settings["iso"].startswith('/'):
- self.settings["iso"]=\
- catalyst.util.normpath(self.settings["iso"])
- else:
- # This automatically prepends the build dir to the ISO output path
- # if it doesn't start with a /
- self.settings["iso"] = catalyst.util.normpath(self.settings["storedir"] + \
- "/builds/" + self.settings["rel_type"] + "/" + \
- self.settings["iso"])
+ if not "iso" in self.settings:
+ self.settings["iso"] = "livecd-" + self.settings["subarch"] + "-" + self.settings["version_stamp"] + ".iso"
+ if self.settings["iso"].startswith('/'):
+ self.settings["iso"]=\
+ catalyst.util.normpath(self.settings["iso"])
+ else:
+ # This automatically prepends the build dir to the ISO output path
+ # if it doesn't start with a /
+ self.settings["iso"] = catalyst.util.normpath(self.settings["storedir"] + \
+ "/builds/" + self.settings["rel_type"] + "/" + \
+ self.settings["iso"])
def set_fstype(self):
if not "fstype" in self.settings: