[policy] [SourceTest] check spec_url for wrapperRPM task

fixes: #3046
This commit is contained in:
Yu Ming Zhu 2021-09-22 17:38:54 +00:00 committed by Tomas Kopecek
parent c69ed04dd0
commit 459c8cd3c2

View file

@ -10025,10 +10025,13 @@ class SourceTest(koji.policy.MatchTest):
# build - (src, target, opts=None)
# maven - (url, target, opts=None)
# winbuild - (name, source_url, target, opts=None)
# wrapperRPM - (spec_url, build_target, build, task, opts=None)
if info['method'] == 'winbuild':
data[self.field] = params['source_url']
elif info['method'] == 'indirectionimage':
return False
elif info['method'] == 'wrapperRPM':
data[self.field] = params['spec_url']
elif 'src' in params:
data[self.field] = params['src']
elif 'url' in params: