diff options
author | Paul Howarth <paul@city-fan.org> | 2010-08-11 11:54:00 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-08-14 09:17:56 -0500 |
commit | c6e28ae633fa4470a852f8f137d88b191f963dcb (patch) | |
tree | 29982672de22b3ef7a7b21cd5fc616ee0a9abdc0 | |
parent | f72ad8a7bb1decd1fbd37d310d7ec3ea3bc6a4fd (diff) | |
download | mock-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-x | py/mock.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |