mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 16:56:15 +01:00
Merge pull request #12 from a-sidorin/sidorin4review
build.py: bugfix: incorrect determination of hostarch available for build
This commit is contained in:
commit
cd29a30aa1
@ -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