1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

- hostarch is an array :/

This commit is contained in:
Adrian Schröter 2013-04-16 15:24:28 +02:00
parent ce04f8b9bb
commit b99233e3ae

View File

@ -5116,9 +5116,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if arg.endswith('.spec') or arg.endswith('.dsc') or arg.endswith('.kiwi') or arg == 'PKGBUILD':
arg_descr = arg
else:
if (arg == osc.build.hostarch or osc.build.can_also_build.get(arg) != None) and arg_arch is None:
if (arg in osc.build.hostarch or osc.build.can_also_build.get(arg) != None) and arg_arch is None:
arg_arch = arg
if not (arg in osc.build.can_also_build.get(osc.build.hostarch, []) or arg == osc.build.hostarch):
if not (arg in osc.build.can_also_build.get(osc.build.hostarch, []) or arg in osc.build.hostarch):
print("WARNING: native compile is not possible, an emulator must be configured!")
elif not arg_repository:
arg_repository = arg