stagingapi: rebuild_broken(): utilize python argument expansion.
This commit is contained in:
parent
4409304cb0
commit
2c592bdb53
@ -810,13 +810,11 @@ class StagingAPI(object):
|
|||||||
continue
|
continue
|
||||||
key = (package['project'], package['package'],
|
key = (package['project'], package['package'],
|
||||||
package['repository'], package['arch'])
|
package['repository'], package['arch'])
|
||||||
if check and not self.rebuild_check(package['project'], package['package'],
|
if check and not self.rebuild_check(*key):
|
||||||
package['repository'], package['arch']):
|
|
||||||
yield (key, 'skipped')
|
yield (key, 'skipped')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
code = rebuild(self.apiurl, package['project'], package['package'],
|
code = rebuild(self.apiurl, *key)
|
||||||
package['repository'], package['arch'])
|
|
||||||
yield (key, code)
|
yield (key, code)
|
||||||
|
|
||||||
def rebuild_check(self, project, package, repository, architecture):
|
def rebuild_check(self, project, package, repository, architecture):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user