Added a check to see if we have the tarball option enabled, which causes catalyst...
authorChris Gianelloni <wolf31o2@gentoo.org>
Fri, 3 Nov 2006 22:13:50 +0000 (22:13 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Fri, 3 Nov 2006 22:13:50 +0000 (22:13 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1184 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py
modules/stage4_target.py

index 2517649733e9e535e5366f2703e4ac3d2ab044c7..48b6ad05084c9a525fad9785606d6fb1283556ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.664 2006/10/02 20:41:53 wolf31o2 Exp $
 
+  03 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+  modules/generic_stage_target.py, modules/stage4_target.py:
+  Added a check to see if we have the tarball option enabled, which causes
+  catalyst to run the capture sequence. This was requested by Tim Yamin for
+  the stage4 target, but I thought it should be usable on any stage target.
+
   03 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/support/livecdfs-update.sh:
   Moved fstab tweaks all into one location and added make.conf tweak for bug
index a52ff19e83ed60f2db1cdca018d7ab6cf6d2054e..2d5c8537cf01b87fe351fe9863c87a26f1ab9003 100644 (file)
@@ -401,7 +401,10 @@ class generic_stage_target(generic_target):
                #Default action sequence for run method
                self.settings["action_sequence"]=["unpack","unpack_snapshot",\
                                "config_profile_link","setup_confdir","portage_overlay","bind","chroot_setup",\
-                               "setup_environment","run_local","preclean","unbind","clean","capture","clear_autoresume"]
+                               "setup_environment","run_local","preclean","unbind","clean"]
+               if not self.settings.has_key("TARBALL"):
+                       self.settings["action_sequence"].append("capture")
+               self.settings["action_sequence"].append("clear_autoresume")
        
        def set_use(self):
                if self.settings.has_key(self.settings["spec_prefix"]+"/use"):
index 5e57b4dadad456f65e452e3c65ea3f0db2d95a25..8dee8d3d6a5771ca98825fcb09c4dfad354b1215 100644 (file)
@@ -27,7 +27,11 @@ class stage4_target(generic_stage_target):
                                        "bind","chroot_setup","setup_environment","build_packages",\
                                        "build_kernel","bootloader","root_overlay","fsscript",\
                                        "preclean","rcupdate","unmerge","unbind","remove","empty",\
-                                       "clean","capture", "clear_autoresume"]
+                                       "clean"]
+
+               if self.settings.has_key("TARBALL"):
+                       self.settings["action_sequence"].append("capture")
+               self.settings["action_sequence"].append("clear_autoresume")
 
 def register(foo):
        foo.update({"stage4":stage4_target})