From ff6fc5d72cf7f47330ca7abf06d9a3d04472f8c4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Oct 2006 01:48:58 +0000 Subject: [PATCH] =?utf8?q?For=20getmaskingstatus=20messages,=20don't=20ass?= =?utf8?q?ume=20ARCH=20is=20a=20valid=20keyword,=20since=20that=20assumpti?= =?utf8?q?on=20is=20not=20necessarily=20correct=20for=20operating=20system?= =?utf8?q?s=20other=20than=20Linux.=20=20Thanks=20to=20Diego=20Petten?= =?utf8?q?=C3=B2=20for=20reporting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=4879 --- pym/portage.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.26.2