From 8fe1bab3fb14d0dbba976e4891974faca1e57b63 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Sat, 23 Jun 2007 19:36:30 +0000 Subject: get ACCEPT_KEYWORDS from the env in gvisible() to properly handle negated values (bug #139600) svn path=/main/trunk/; revision=6981 --- pym/portage/dbapi/porttree.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 524a36fa2..56c711d13 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -649,6 +649,12 @@ class portdbapi(dbapi): accept_keywords = self.mysettings["ACCEPT_KEYWORDS"].split() pkgdict = self.mysettings.pkeywordsdict aux_keys = ["KEYWORDS", "LICENSE", "EAPI", "SLOT"] + + # 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() + for mycpv in mylist: try: keys, licenses, eapi, slot = self.aux_get(mycpv, aux_keys) @@ -670,6 +676,7 @@ class portdbapi(dbapi): matches = match_to_list(cpv_slot, pkgdict[cp].keys()) for atom in matches: pgroups.extend(pkgdict[cp][atom]) + pgroups.extend(egroups) if matches: # normalize pgroups with incrementals logic so it # matches ACCEPT_KEYWORDS behavior -- cgit v1.2.3-1-g7c22