Fix for bug 116305;removed unnecessary pkgcache_path processing from the stage4 target
authorEric Edgar <rocket@gentoo.org>
Wed, 28 Dec 2005 11:56:17 +0000 (11:56 +0000)
committerEric Edgar <rocket@gentoo.org>
Wed, 28 Dec 2005 11:56:17 +0000 (11:56 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1003 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py
modules/stage4_target.py

index 2917edf1e411261a099cfc4b5b42c99b8adbf55d..b5264e7bcbd14384001688e01e2ab9b3525e89f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.490 2005/12/23 06:38:18 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.491 2005/12/28 11:56:17 rocket Exp $
+
+  28 Dec 2005; Eric Edgar <rocket@gentoo.org>
+  modules/generic_stage_target.py, modules/stage4_target.py:
+  Fix for bug 116305;removed unnecessary pkgcache_path processing from the
+  stage4 target
 
   23 Dec 2005; Eric Edgar <rocket@gentoo.org> arch/sh.py,
   modules/generic_stage_target.py, modules/stage4_target.py:
index ac6d5ce47d8ebebb0f9e3b82d83a423832fa13ad..1d8df6fe00bb44a7bcff107f4a290a0e024667ea 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 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.107 2005/12/23 06:38:18 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.108 2005/12/28 11:56:17 rocket Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -247,6 +247,10 @@ class generic_stage_target(generic_target):
                        raise CatalystError, "source_subpath should have been a string. Perhaps you have something wrong in your spec file?"
        
        def set_pkgcache_path(self):
+               if self.settings.has_key("pkgcache_path"):
+                       if type(self.settings["pkgcache_path"]) != types.StringType:
+                               self.settings["pkgcache_path"]=normpath(string.join(self.settings["pkgcache_path"]))
+
                self.settings["pkgcache_path"]=normpath(self.settings["storedir"]+"/packages/"+\
                        self.settings["target_subpath"]+"/")
 
index a222bdb69942b3a6da87ca437fe33e549d06d888..edc6d69bab2f399fdb4d684feec3c246d58b29a0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 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.14 2005/12/23 06:38:18 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage4_target.py,v 1.15 2005/12/28 11:56:17 rocket Exp $
 
 """
 Builder class for LiveCD stage1.
@@ -17,13 +17,6 @@ class stage4_target(generic_stage_target):
                                "stage4/rcadd","stage4/rcdel","chost","cflags","ldflags","cxxflags"])
                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"]=normpath(string.join(self.settings["pkgcache_path"]))
-                       else:
-                               generic_stage_target.set_pkgcache_path(self)
-
        def set_cleanables(self):
                self.settings["cleanables"]=["/var/tmp/*","/tmp/*"]