From 22fb12b66fd5946ccb2d34860cd92dc863843187 Mon Sep 17 00:00:00 2001 From: Alexey Sidorin Date: Wed, 17 Oct 2012 17:20:47 +0400 Subject: [PATCH] build.py: bugfix: incorrect determination of hostarch available for build * x86-64 should be able to build for i586 hostarch but it doesn't. --- osc/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index 73fdd36a..add76317 100644 --- a/osc/build.py +++ b/osc/build.py @@ -647,7 +647,7 @@ def main(apiurl, opts, argv): # vs. # arch we are supposed to build for if bi.hostarch != None: - if hostarch != bi.hostarch and not hostarch in can_also_build.get(hostarch, []): + if hostarch != bi.hostarch and not bi.hostarch in can_also_build.get(hostarch, []): print >>sys.stderr, 'Error: hostarch \'%s\' is required.' % (bi.hostarch) return 1 elif hostarch != bi.buildarch: