Make the fix for bug #139600 slightly less icky by grabbing the ACCEPT_KEYWORDS throu...
authorZac Medico <zmedico@gentoo.org>
Sun, 24 Jun 2007 07:11:46 +0000 (07:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 24 Jun 2007 07:11:46 +0000 (07:11 -0000)
svn path=/main/trunk/; revision=6987

pym/portage/dbapi/porttree.py

index 1fe162bff2d2fa15fe93507a7c59f850bf02a19d..71ff993ba0945998d504c1b648561a72fcb9a520 100644 (file)
@@ -654,7 +654,8 @@ class portdbapi(dbapi):
                # Hack: Need to check the env directly here as otherwise stacking 
                # doesn't work properly as negative values are lost in the config
                # object (bug #139600)
-               egroups = os.environ.get("ACCEPT_KEYWORDS", "").split()
+               egroups = self.mysettings.configdict["backupenv"].get(
+                       "ACCEPT_KEYWORDS", "").split()
 
                for mycpv in mylist:
                        try: