FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 08-11-2010, 10:54 AM
Paul Howarth
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:47 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org