[entropy.const] rework ETP_ARCH_CONST and keywords configuration, make it work with overridden values

This commit is contained in:
Fabio Erculiani
2012-02-27 23:18:26 +01:00
parent 74805acac0
commit 85ebb0ebac

View File

@@ -133,15 +133,15 @@ if ETP_ARCH_CONST is None:
break
_more_keywords = None
if ETP_ARCH_CONST is None:
if _uname_m.startswith("arm"):
# ARM is "special", multiple subarches
# ahead, better use the full uname value
# and account "arm" to etpSys['keywords']
if _uname_m.startswith("arm"):
# ARM is "special", multiple subarches
# ahead, better use the full uname value
# and account "arm" to etpSys['keywords']
if ETP_ARCH_CONST is None:
ETP_ARCH_CONST = _uname_m
_more_keywords = set(["arm", "~arm"])
else:
ETP_ARCH_CONST = "UNKNOWN"
_more_keywords = set(["arm", "~arm"])
elif ETP_ARCH_CONST is None:
ETP_ARCH_CONST = "UNKNOWN"
etpSys = {
'archs': ['alpha', 'amd64', 'amd64-fbsd', 'arm', 'hppa', 'ia64', 'm68k',