mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
build.py: bugfix: incorrect determination of hostarch available for build
* x86-64 should be able to build for i586 hostarch but it doesn't.
This commit is contained in:
parent
161b9ca274
commit
22fb12b66f
@ -647,7 +647,7 @@ def main(apiurl, opts, argv):
|
||||
# vs.
|
||||
# arch we are supposed to build for
|
||||
if bi.hostarch != None:
|
||||
if hostarch != bi.hostarch and not hostarch in can_also_build.get(hostarch, []):
|
||||
if hostarch != bi.hostarch and not bi.hostarch in can_also_build.get(hostarch, []):
|
||||
print >>sys.stderr, 'Error: hostarch \'%s\' is required.' % (bi.hostarch)
|
||||
return 1
|
||||
elif hostarch != bi.buildarch:
|
||||
|
Loading…
Reference in New Issue
Block a user