From 61bbd6395887b2f1b1d296709bc9cda0f571d8d9 Mon Sep 17 00:00:00 2001 From: Daniel Robbins Date: Fri, 9 Jan 2004 22:39:53 +0000 Subject: [PATCH] lil livecd fixups git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@122 d1e1f19c-881f-0410-ab34-b69fee027534 --- modules/targets.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: -- 2.26.2