Respect profiles/arch.list.
authoridl0r <idl0r@gentoo.org>
Mon, 4 May 2009 17:36:12 +0000 (17:36 -0000)
committeridl0r <idl0r@gentoo.org>
Mon, 4 May 2009 17:36:12 +0000 (17:36 -0000)
svn path=/; revision=577

trunk/src/ekeyword2/ekeyword2

index 963fb5cdb6a2ec482a9ecd7118358ff67a7fb60a..9eae4d5bc4c8a4403967d9f373a9876089a2e4a6 100755 (executable)
@@ -10,28 +10,11 @@ from __future__ import with_statement
 from sys import argv
 from fnmatch import fnmatch
 from shutil import copyfile
+from portage import settings
 
 import re
 
-STABLE_KEYWORDS = frozenset((
-       'alpha',
-       'amd64',
-       'amd64-fbsd',
-       'arm',
-       'hppa',
-       'ia64',
-       'mips',
-       'm68k',
-       'ppc',
-       'ppc-macos',
-       'ppc64',
-       's390',
-       'sparc',
-       'sparc-fbsd',
-       'sh',
-       'x86',
-       'x86-fbsd',
-))
+STABLE_KEYWORDS = frozenset(settings["PORTAGE_ARCHLIST"].split())
 TEST_KEYWORDS = frozenset(['~'+k for k in STABLE_KEYWORDS])
 KNOWN_KEYWORDS = STABLE_KEYWORDS | TEST_KEYWORDS