diff --git a/osc/commandline.py b/osc/commandline.py index 47a4d004..3f871b7d 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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