mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
Merge branch 'master' of https://github.com/andreas-schwab/osc
Do not crash if osc.build.can_also_build has no hostarch key.
This commit is contained in:
commit
341962f9c0
@ -6011,7 +6011,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if (arg == osc.build.hostarch or arg in all_archs) and arg_arch is None:
|
if (arg == osc.build.hostarch or arg in all_archs) and arg_arch is None:
|
||||||
# it seems to be an architecture in general
|
# it seems to be an architecture in general
|
||||||
arg_arch = arg
|
arg_arch = arg
|
||||||
if not (arg in osc.build.can_also_build.get(osc.build.hostarch) or arg == osc.build.hostarch):
|
if not (arg == osc.build.hostarch or arg in osc.build.can_also_build.get(osc.build.hostarch, [])):
|
||||||
print("WARNING: native compile is not possible, an emulator must be configured!")
|
print("WARNING: native compile is not possible, an emulator must be configured!")
|
||||||
elif not arg_repository:
|
elif not arg_repository:
|
||||||
arg_repository = arg
|
arg_repository = arg
|
||||||
|
Loading…
Reference in New Issue
Block a user