1
0
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:
Marcus Hüwe 2012-10-19 03:57:33 -07:00
commit cd29a30aa1

View File

@ -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: