fixes for bugs 119009,119041 and 118985
authorEric Edgar <rocket@gentoo.org>
Mon, 16 Jan 2006 07:18:28 +0000 (07:18 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 16 Jan 2006 07:18:28 +0000 (07:18 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1021 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py

index ee67e368d198ce9f0fdcd0acf44834a2d182995c..e13db183dfe11d9882c199422cd1f02325039e84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.506 2006/01/13 15:09:07 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.507 2006/01/16 07:18:28 rocket Exp $
+
+  16 Jan 2006; Eric Edgar <rocket@gentoo.org>
+  modules/generic_stage_target.py:
+  fixes for bugs 119009,119041 and 118985
 
   13 Jan 2006; Eric Edgar <rocket@gentoo.org>
   +examples/netboot2_template.spec, modules/catalyst_support.py,
index b6522ffea622130023e379e449b58f1de3c4d24a..5937ff1ab09258bf9f2474f1006048af48cae623 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.115 2006/01/13 15:00:04 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.116 2006/01/16 07:18:28 rocket Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -21,8 +21,8 @@ class generic_stage_target(generic_target):
                
                self.valid_values.extend(["version_stamp","target","subarch","rel_type","profile",\
                        "snapshot","source_subpath","portage_confdir","cflags","cxxflags",\
-                       "ldflags","chost","hostuse"])
-               generic_target.__init__(self,addlargs,myspec)
+                       "ldflags","chost","hostuse","portage_overlay","distcc_hosts"])
+               generic_target.__init__(self,myspec,addlargs)
                
                # map the mainarch we are running under to the mainarches we support for
                # building stages and LiveCDs. (for example, on amd64, we can build stages for
@@ -438,9 +438,10 @@ class generic_stage_target(generic_target):
                                del self.settings[self.settings["spec_prefix"]+"/linuxrc"]
 
        def set_portage_overlay(self):
-           if self.settings.has_key("portage_overlay"):
-               if type(self.settings["portage_overlay"])==types.StringType:
-                       self.settings["portage_overlay"]=[self.settings["portage_overlay"]]
+               if self.settings.has_key("portage_overlay"):
+                       if type(self.settings["portage_overlay"])==types.StringType:
+                               self.settings["portage_overlay"]=self.settings["portage_overlay"].split()
+                       print "portage_overlay directories are set to: \"" + string.join(self.settings["portage_overlay"])+"\""
 
        def set_root_path(self):
                # ROOT= variable for emerges
@@ -716,7 +717,8 @@ class generic_stage_target(generic_target):
                        if os.path.exists(x):
                                print "Copying overlay dir " +x
                                cmd("mkdir -p "+self.settings["chroot_path"]+x,"Could not make portage_overlay dir",env=self.env)
-                               cmd("rsync -a --delete "+x+"/* "+self.settings["chroot_path"]+x,\
+                               #cmd("rsync -a --delete "+x+"/* "+self.settings["chroot_path"]+x,\
+                               cmd("rsync -a --delete "+x+"/ "+self.settings["chroot_path"]+x,\
                                                "Could not copy portage_overlay",env=self.env)
                                #cmd("cp -R "+x+"/* "+self.settings["chroot_path"]+x,"Could not copy portage_overlay",env=self.env)
        
@@ -858,10 +860,8 @@ class generic_stage_target(generic_target):
 
                    # setup the portage overlay 
                        if self.settings.has_key("portage_overlay"):
-                               if type(self.settings["portage_overlay"])==types.StringType:
-                                       self.settings[self.settings["portage_overlay"]]=[self.settings["portage_overlay"]]
-                                       
                                myf.write('PORTDIR_OVERLAY="'+string.join(self.settings["portage_overlay"])+'"\n')
+                       
                        myf.close()
                        touch(self.settings["autoresume_path"]+"chroot_setup")