# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.276 2005/06/22 18:53:49 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.277 2005/06/23 15:42:50 rocket Exp $
+
+ 23 Jun 2005; Eric Edgar <rocket@gentoo.org>
+ modules/generic_stage_target.py, modules/livecd_stage1_target.py,
+ modules/stage4_target.py:
+ Allow changing the location of the pkg_cache in stage4 or livecd-stage1
22 Jun 2005; Eric Edgar <rocket@gentoo.org> :
Fix issue where -s on the command line would not run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.46 2005/05/18 18:09:14 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.47 2005/06/23 15:42:50 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
# configure any user specified options (either in catalyst.conf or on the cmdline)
if self.settings.has_key("PKGCACHE"):
- self.settings["pkgcache_path"]=self.settings["storedir"]+"/packages/"+self.settings["target_subpath"]
+ self.set_pkgcache_path()
+ print "Location of the package cache is" + self.settings["pkgcache_path"]
self.mounts.append("/usr/portage/packages")
self.mountmap["/usr/portage/packages"]=self.settings["pkgcache_path"]
self.settings["target_subpath"]=self.settings["rel_type"]+"/"+self.settings["target"]+\
"-"+self.settings["subarch"]+"-"+self.settings["version_stamp"]
+ def set_pkgcache_path(self):
+ self.settings["pkgcache_path"]=self.settings["storedir"]+"/packages/"+\
+ self.settings["target_subpath"]
+
def set_target_path(self):
self.settings["target_path"]=self.settings["storedir"]+"/builds/"+self.settings["target_subpath"]+".tar.bz2"
if self.settings.has_key("AUTORESUME") \
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.12 2005/04/27 17:44:58 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.13 2005/06/23 15:42:50 rocket Exp $
"""
Builder class for LiveCD stage1.
if self.settings.has_key(self.settings["spec_prefix"]+"/packages"):
self.settings[self.settings["spec_prefix"]+"/packages"].append("livecd-tools")
+ def set_pkgcache_path(self):
+ if self.settings.has_key("pkgcache_path"):
+ if type(self.settings["pkgcache_path"]) != types.StringType:
+ self.settings["pkgcache_path"]=string.join(self.settings["pkgcache_path"])
+ else:
+ generic_stage_target.set_pkgcache_path(self)
+
def register(foo):
foo.update({"livecd-stage1":livecd_stage1_target})
return foo
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage4_target.py,v 1.6 2005/04/27 17:59:35 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage4_target.py,v 1.7 2005/06/23 15:42:50 rocket Exp $
"""
Builder class for LiveCD stage1.
self.valid_values.extend(["stage4/use", "stage4/packages", "stage4/root_overlay", "stage4/fsscript", \
"stage4/rcadd","stage4/rcdel"])
generic_stage_target.__init__(self,spec,addlargs)
-
+
+ def set_pkgcache_path(self):
+ if self.settings.has_key("pkgcache_path"):
+ if type(self.settings["pkgcache_path"]) != types.StringType:
+ self.settings["pkgcache_path"]=string.join(self.settings["pkgcache_path"])
+ else:
+ generic_stage_target.set_pkgcache_path(self)
+
def set_cleanables(self):
self.settings["cleanables"]=["/var/tmp/*","/tmp/*"]