Fixed up action_sequence when using --fetchonly to not create tarballs or ISO images...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 22 Nov 2006 16:27:15 +0000 (16:27 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 22 Nov 2006 16:27:15 +0000 (16:27 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1190 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
catalyst
modules/generic_stage_target.py
modules/livecd_stage2_target.py
modules/stage2_target.py
modules/stage4_target.py

index 7d9f303021f9d5ec6bca23dad85c8e7a0c309696..c883a60718bca4c30a575729cdebcd27bfc01c25 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 $
 
+  22 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
+  modules/generic_stage_target.py, modules/livecd_stage2_target.py,
+  modules/stage2_target.py, modules/stage4_target.py:
+  Fixed up action_sequence when using --fetchonly to not create tarballs or
+  ISO images for bug #143392.
+
   22 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/grp/grp-chroot.sh, targets/stage4/stage4-chroot.sh:
   Clean up the USE usage in GRP/stage4.
index 0a237c7a99302bd41a45ebe3822d6991d980ea73..6c11fb2c54711977267cddb32bf51645a37a9d29 100755 (executable)
--- a/catalyst
+++ b/catalyst
@@ -105,9 +105,9 @@ def parse_config(myconfig):
                print "Cleaning autoresume flags support enabled."
                conf_values["CLEAR_AUTORESUME"]="1"
 
-       if "compress" in string.split(conf_values["options"]):
-               print "Compression enabled."
-               conf_values["COMPRESS"]="1"
+#      if "compress" in string.split(conf_values["options"]):
+#              print "Compression enabled."
+#              conf_values["COMPRESS"]="1"
 
        if "distcc" in string.split(conf_values["options"]):
                print "Distcc support enabled."
@@ -133,9 +133,9 @@ def parse_config(myconfig):
                print "Snapshot cache support enabled."
                conf_values["SNAPCACHE"]="1"
 
-       if "tarball" in string.split(conf_values["options"]):
-               print "Tarball creation enabled."
-               conf_values["TARBALL"]="1"
+#      if "tarball" in string.split(conf_values["options"]):
+#              print "Tarball creation enabled."
+#              conf_values["TARBALL"]="1"
 
        if myconf.has_key("digests"):
                conf_values["digests"]=myconf["digests"]
index c2a9740051a0a1e36483b165085435da5828cec8..477af6273eee28aecc9c9ac6d4ea17985bdd45dd 100644 (file)
@@ -396,12 +396,14 @@ class generic_stage_target(generic_target):
                        self.settings["iso_volume_id"] = "catalyst " + self.settings["snapshot"] 
                                                                                                                        
        def set_action_sequence(self):
-               #Default action sequence for run method
+               # Default action sequence for run method
                self.settings["action_sequence"]=["unpack","unpack_snapshot",\
                                "config_profile_link","setup_confdir","portage_overlay",\
                                "base_dirs","bind","chroot_setup","setup_environment",\
                                "run_local","preclean","unbind","clean"]
-               if not self.settings.has_key("TARBALL"):
+#              if self.settings.has_key("TARBALL") or \
+#                      not self.settings.has_key("FETCH"):
+               if not self.settings.has_key("FETCH"):
                        self.settings["action_sequence"].append("capture")
                self.settings["action_sequence"].append("clear_autoresume")
        
index 01c96b2b7f1f638281c464e5aff2e70b4c7d4a3f..a8e2fdc79b448b34176b8dc7db39e9ae022d2efa 100644 (file)
@@ -126,10 +126,13 @@ class livecd_stage2_target(generic_stage_target):
            self.settings["action_sequence"]=["unpack","unpack_snapshot",\
                            "config_profile_link","setup_confdir","portage_overlay",\
                            "bind","chroot_setup","setup_environment","run_local",\
-                           "build_kernel","bootloader","preclean","livecd_update",
-                           "root_overlay","fsscript","rcupdate","unmerge",\
+                           "build_kernel"]
+               if not self.settings.has_key("FETCH"):
+                       self.settings["action_sequence"].append("bootloader","preclean",\
+                               "livecd_update","root_overlay","fsscript","rcupdate","unmerge",\
                            "unbind","remove","empty","target_setup",\
-                           "setup_overlay","create_iso","clear_autoresume"]
+                           "setup_overlay","create_iso"]
+               self.settings["action_sequence"].append("clear_autoresume"]
 
 def register(foo):
        foo.update({"livecd-stage2":livecd_stage2_target})
index dbbffba79af59399302ead7176d31ff91187d101..6b3a6bcbee0adf2816a7028b3167d627bfcdfe4a 100644 (file)
@@ -19,7 +19,8 @@ class stage2_target(generic_stage_target):
                else:
                        self.settings["source_path"]=normpath(self.settings["storedir"]+"/builds/"+self.settings["source_subpath"]+".tar.bz2")
                        if os.path.isfile(self.settings["source_path"]):
-                               if os.path.exists(self.settings["source_path"]): # XXX: Is this even necessary if the previous check passes?
+                               if os.path.exists(self.settings["source_path"]):
+                               # XXX: Is this even necessary if the previous check passes?
                                        self.settings["source_path_hash"]=generate_hash(self.settings["source_path"],\
                                                hash_function=self.settings["hash_function"],verbose=False)
                print "Source path set to "+self.settings["source_path"]
@@ -27,7 +28,8 @@ class stage2_target(generic_stage_target):
                        print "\tIf this is not desired, remove this directory or turn of seedcache in the options of catalyst.conf"
                        print "\tthe source path will then be "+normpath(self.settings["storedir"]+"/builds/"+self.settings["source_subpath"]+".tar.bz2\n")
 
-       # XXX: How do these override_foo() functions differ from the ones in generic_stage_target and why aren't they in stage3_target?
+       # XXX: How do these override_foo() functions differ from the ones in
+       # generic_stage_target and why aren't they in stage3_target?
        
        def override_chost(self):
                if self.settings.has_key("chost"):
index 8dee8d3d6a5771ca98825fcb09c4dfad354b1215..e2daab30c36c34f5e408384abc06b3c9a8b01301 100644 (file)
@@ -29,7 +29,9 @@ class stage4_target(generic_stage_target):
                                        "preclean","rcupdate","unmerge","unbind","remove","empty",\
                                        "clean"]
 
-               if self.settings.has_key("TARBALL"):
+#              if self.settings.has_key("TARBALL") or \
+#                      not self.settings.has_key("FETCH"):
+               if not self.settings.has_key("FETCH"):
                        self.settings["action_sequence"].append("capture")
                self.settings["action_sequence"].append("clear_autoresume")