From: Daniel Robbins Date: Fri, 9 Jan 2004 22:39:53 +0000 (+0000) Subject: lil livecd fixups X-Git-Tag: CATALYST_1_0_1~118 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=61bbd6395887b2f1b1d296709bc9cda0f571d8d9;p=catalyst.git lil livecd fixups git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@122 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/modules/targets.py b/modules/targets.py index 14dffbd3..983defd6 100644 --- a/modules/targets.py +++ b/modules/targets.py @@ -426,8 +426,15 @@ class livecd_stage3_target(generic_stage_target): def __init__(self,spec,addlargs): self.required_values=["boot/kernel","livecd-stage3/runscript"] self.valid_values=self.required_values[:] - self.valid_values.append("livecd-stage3/cdtar","livecd-stage3/clean") + self.valid_values.extend(["livecd-stage3/cdtar","livecd-stage3/clean"]) generic_stage_target.__init__(self,spec,addlargs) + if self.settings.has_key("livecd-stage3/cdtar"): + if not os.path.exists(self.settings["livecd-stage3/cdtar"]): + raise CatalystError, "Cannot locate specified livecd-stage3/cdtar: "+self.settings["livecd-stage3/cdtar"] + if not os.path.exists(self.settings["livecd-stage3/runscript"]): + raise CatalystError, "Cannot locate specified livecd-stage3/runscript: "+self.settings["livecd-stage3/runscript"] + + def run_local(self): try: