Fixes: https://pagure.io/koji/issue/1225
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
first attempt at testing gave
File "/usr/share/koji-hub/kojihub.py", line 8274, in policy_get_build_types if 'btypes' in data['build']: TypeError: argument of type 'int' is not iterable
Many policy hooks pass just a build id. So like with other policy tests we need to handle that.
I'm also not sure where we should expect called provided btype info. I don't think any current code does. Would it possibly be at top level?
rebased onto 7af49ee6af4dc19fd7ac5e7f1b71f096ba0e5978
Fixed problem with buildinfo. I've put btypes to top level for now - if buildinfo can be just build_id, it seems to be a safer option.
rebased onto ff2c95f78c3ffaa3fb057d15a49f415c1f1fed7c
Commit 9036e0e7 fixes this pull-request
Pull-Request has been merged by mikem
Fixes: https://pagure.io/koji/issue/1225