Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   noarch is always a legal arch (http://www.linux-archive.org/fedora-build-system/411360-noarch-always-legal-arch.html)

Paul Howarth 08-11-2010 10:54 AM

noarch is always a legal arch
 
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

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys


All times are GMT. The time now is 10:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.