Skip to content

Commit

Permalink
- fix build on ppc/s390/ia64 (bnc#815296)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Apr 16, 2013
1 parent 67d45a5 commit b8faeed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/commandline.py
Expand Up @@ -5108,9 +5108,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 osc.build.can_also_build.get(arg) != None and arg_arch is None:
if (arg == 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 in osc.build.hostarch):
if not (arg in osc.build.can_also_build.get(osc.build.hostarch, []) or arg == 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 b8faeed

Please sign in to comment.