From: Zac Medico Date: Mon, 30 Oct 2006 01:48:58 +0000 (-0000) Subject: For getmaskingstatus messages, don't assume ARCH is a valid keyword, since that assum... X-Git-Tag: v2.1.2~529 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff6fc5d72cf7f47330ca7abf06d9a3d04472f8c4;p=portage.git For getmaskingstatus messages, don't assume ARCH is a valid keyword, since that assumption is not necessarily correct for operating systems other than Linux. Thanks to Diego Pettenò for reporting. svn path=/main/trunk/; revision=4879 --- diff --git a/pym/portage.py b/pym/portage.py index f527ad826..c20b44a0c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3958,6 +3958,10 @@ def getmaskingstatus(mycpv, settings=None, portdb=None): mygroups = mygroups.split() pgroups = settings["ACCEPT_KEYWORDS"].split() myarch = settings["ARCH"] + if pgroups and myarch not in pgroups: + """For operating systems other than Linux, ARCH is not necessarily a + valid keyword.""" + myarch = pgroups[0].lstrip("~") pkgdict = settings.pkeywordsdict cp = dep_getkey(mycpv)