[PATCH 4/5] noarch is always a legal arch

Paul Howarth paul at city-fan.org
Wed Aug 11 10:54:00 UTC 2010


Allow "--target noarch" to be specified.
---
 py/mock.py |    2 +-
 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:
-- 
1.7.2.1



More information about the buildsys mailing list