summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Howarth <paul@city-fan.org>2010-08-11 11:54:00 +0100
committerClark Williams <williams@redhat.com>2010-08-14 09:17:56 -0500
commitc6e28ae633fa4470a852f8f137d88b191f963dcb (patch)
tree29982672de22b3ef7a7b21cd5fc616ee0a9abdc0
parentf72ad8a7bb1decd1fbd37d310d7ec3ea3bc6a4fd (diff)
downloadmock-c6e28ae633fa4470a852f8f137d88b191f963dcb.tar.gz
mock-c6e28ae633fa4470a852f8f137d88b191f963dcb.tar.xz
mock-c6e28ae633fa4470a852f8f137d88b191f963dcb.zip
noarch is always a legal arch
Allow "--target noarch" to be specified. Signed-off-by: Clark Williams <williams@redhat.com>
-rwxr-xr-xpy/mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mock.py b/py/mock.py
index cd1d241..004ec42 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -380,7 +380,7 @@ decorate(traceLog())
def check_arch_combination(target_arch):
host_arch = os.uname()[-1]
try:
- if target_arch not in legal_arches[host_arch]:
+ if target_arch not in legal_arches[host_arch] + ('noarch',):
raise mock.exception.InvalidArchitecture(
"Cannot build target %s on arch %s" % (target_arch, host_arch))
except KeyError: