When a config instance is cloned, don't initialize PORTAGE_GID since it would have...
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Jul 2006 04:14:53 +0000 (04:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Jul 2006 04:14:53 +0000 (04:14 -0000)
svn path=/main/trunk/; revision=3956

pym/portage.py

index cb78ff4ee14c1501f13c444f6e9f4d7e156b33f0..c41dfbd60e5a1abfed692506004ef4e1b4fa8b1a 100644 (file)
@@ -1192,6 +1192,9 @@ class config:
                        if "USE_ORDER" not in self:
                                self.backupenv["USE_ORDER"] = "env:pkg:conf:defaults"
 
+                       self["PORTAGE_GID"] = str(portage_gid)
+                       self.backup_changes("PORTAGE_GID")
+
                self.lookuplist=self.configlist[:]
                self.lookuplist.reverse()
 
@@ -1203,9 +1206,6 @@ class config:
                                #prepend db to list to get correct order
                                self.uvlist[0:0]=[self.configdict[x]]
 
-               self.configdict["env"]["PORTAGE_GID"]=str(portage_gid)
-               self.backupenv["PORTAGE_GID"]=str(portage_gid)
-
                if self["PORTAGE_CACHEDIR"]:
                        # XXX: Deprecated -- April 15 -- NJ
                        writemsg(yellow(">>> PORTAGE_CACHEDIR has been deprecated!")+"\n")