Skip to content

Commit

Permalink
- hostarch is an array :/
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Apr 16, 2013
1 parent ce04f8b commit b99233e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5116,9 +5116,9 @@ def parse_repoarchdescr(self, args, noinit = False, alternative_project = None,
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
Expand Down

0 comments on commit b99233e

Please sign in to comment.