# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 29 Sep 2008; Andrew Gaffney <agaffney@gentoo.org>
+ modules/generic_stage_target.py:
+ Automatically prepend build dir path to livecd/iso if it's not an absolute
+ path
+
28 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> TODO:
Update TODO with placeholder idea
def set_iso(self):
if self.settings.has_key(self.settings["spec_prefix"]+"/iso"):
- self.settings["iso"]=\
- normpath(self.settings[self.settings["spec_prefix"]+"/iso"])
+ if self.settings[self.settings["spec_prefix"]+"iso"].startswith('/'):
+ self.settings["iso"]=\
+ normpath(self.settings[self.settings["spec_prefix"]+"/iso"])
+ else:
+ # This automatically prepends the build dir to the ISO output path
+ # if it doesn't start with a /
+ self.settings["iso"] = normpath(self.settings["storedir"] + \
+ "/builds/" + self.settings["rel_type"] + "/" + \
+ self.settings[self.settings["spec_prefix"]+"iso"])
del self.settings[self.settings["spec_prefix"]+"/iso"]
def set_fstype(self):