bugfix 47626
authorJohn P. Davis <zhen@gentoo.org>
Tue, 13 Apr 2004 20:04:32 +0000 (20:04 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Tue, 13 Apr 2004 20:04:32 +0000 (20:04 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@349 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/targets.py

index 90c4ec8819f92aad2fdde72917df0d6f466fc69c..0e7179b506dae87879f0cce520060c5d5534dc7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.40 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.41 2004/04/13 20:04:32 zhen Exp $
+
+  13 Apr 2004; John Davis <zhen@gentoo.org> modules/targets.py:
+  fix for bug 47626
 
   12 Apr 2004; John Davis <zhen@gentoo.org> modules/catalyst_support.py,
   targets/embedded/cramfs-runscript.sh, targets/embedded/embedded-chroot.sh,
index 899dce72f430261e16fb30753b611c9fadb3211a..9faa7145a08d62ea6f276d516d4647d0e1664600 100644 (file)
@@ -1,6 +1,6 @@
 # Distributed under the GNU General Public License version 2
 # Copyright 2003-2004 Gentoo Technologies, Inc.
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.100 2004/04/05 20:31:43 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.101 2004/04/13 20:04:32 zhen Exp $
 
 import os,string,imp,types,shutil
 from catalyst_support import *
@@ -443,7 +443,7 @@ class livecd_stage1_target(generic_stage_target):
 
 class livecd_stage2_target(generic_stage_target):
        def __init__(self,spec,addlargs):
-               self.required_values=["boot/kernel","livecd/cdfstype","livecd/archscript","livecd/runscript","livecd/iso"]
+               self.required_values=["boot/kernel","livecd/cdfstype","livecd/archscript","livecd/runscript"]
                self.valid_values=[]
                if not addlargs.has_key("boot/kernel"):
                        raise CatalystError, "Required value boot/kernel not specified."
@@ -458,7 +458,7 @@ class livecd_stage2_target(generic_stage_target):
                        self.valid_values.append("boot/kernel/"+x+"/packages")
                        self.valid_values.append("boot/kernel/"+x+"/use")
                self.valid_values.extend(self.required_values)
-               self.valid_values.extend(["livecd/cdtar","livecd/empty","livecd/rm","livecd/unmerge"])
+               self.valid_values.extend(["livecd/cdtar","livecd/empty","livecd/rm","livecd/unmerge","livecd/iso"])
                generic_stage_target.__init__(self,spec,addlargs)
                file_locate(self.settings, ["livecd/cdtar","livecd/archscript","livecd/runscript"])
        
@@ -516,7 +516,8 @@ class livecd_stage2_target(generic_stage_target):
 
        def cdroot_setup(self):
                cmd("/bin/bash "+self.settings["livecd/runscript"]+" cdfs","cdfs runscript failed.")
-               cmd("/bin/bash "+self.settings["livecd/runscript"]+" iso "+self.settings["livecd/iso"],"iso runscript failed.")
+               if self.settings.has_key("livecd/iso"):
+                       cmd("/bin/bash "+self.settings["livecd/runscript"]+" iso "+self.settings["livecd/iso"],"iso runscript failed.")
                print "livecd-stage2: complete!"
 
        def run_local(self):