PR#3047: [policy] [SourceTest] check spec_url for wrapperRPM task
Merges #3047 https://pagure.io/koji/pull-request/3047 Fixes: #3046 https://pagure.io/koji/issue/3046 SourceTest doesn't work with wrapperRPM when the wrapped build's Source is None
This commit is contained in:
commit
bb4c6a9bbb
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue