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-12 10:57:42 -0500
commitbf71ffd587ff230ba58b700f465bba41458a4270 (patch)
treeb0a5c0d3819b59a77e632420b5d09a85837ac138
parent942b94cd6b1345ce7c2373a6c0cd5e689fd22dcf (diff)
downloadmock-bf71ffd587ff230ba58b700f465bba41458a4270.tar.gz
mock-bf71ffd587ff230ba58b700f465bba41458a4270.tar.xz
mock-bf71ffd587ff230ba58b700f465bba41458a4270.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 f585002..975ef42 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -383,7 +383,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: