PR#2974: use getNextRelease for scratch image builds
Merges #2974 https://pagure.io/koji/pull-request/2974 Fixes: #2911 https://pagure.io/koji/issue/2911 Image scratch builds not generating release
This commit is contained in:
commit
38d10b541c
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