From b99233e3ae1ffc871fdec26fbd3f64087d2ec3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 16 Apr 2013 15:24:28 +0200 Subject: [PATCH] - hostarch is an array :/ --- osc/commandline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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