opts.arch are not defined yet in that moment --- hooks/post-koji-build/hook.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hooks/post-koji-build/hook.py b/hooks/post-koji-build/hook.py index 3cf9d92..298b098 100644 --- a/hooks/post-koji-build/hook.py +++ b/hooks/post-koji-build/hook.py @@ -26,7 +26,8 @@ def process_testlist(opts, args, testlist): # XXX TODO we may pull new tests from CVS at this point # XXX HACK: only run rpmlint on one single arch, since one test will cover # the packages for all arches - if 'x86_64' not in opts.arch and 'rpmlint' in testlist: + archs = opts.arch or [] + if 'x86_64' not in archs and 'rpmlint' in testlist: testlist.remove('rpmlint') return testlist