use getNextRelease for scratch image builds
Related: https://pagure.io/koji/issue/2911
This commit is contained in:
parent
e13e56a1b2
commit
540e5057b9
1 changed files with 3 additions and 0 deletions
|
|
@ -2498,6 +2498,9 @@ class BuildBaseImageTask(BuildImageTask):
|
|||
bld_info = self.initImageBuild(name, version, release,
|
||||
target_info, opts)
|
||||
release = bld_info['release']
|
||||
elif not release:
|
||||
# scratch build should have some reasonable release
|
||||
release = self.session.getNextRelease(dict(name=name, version=version))
|
||||
|
||||
subtasks = {}
|
||||
self.logger.debug("Spawning jobs for image arches: %r" % (arches))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue