# 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.
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."
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"]
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")
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})
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"]
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"):
"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")