#2877 Livecd handler set up release if release not given
Merged 11 months ago by tkopecek. Opened a year ago by jcupova.
jcupova/koji issue-2830  into  master

file modified
+4 -1
@@ -2698,7 +2698,10 @@ 

          # build the image

          bld_info = None

          try:

-             release = opts.get('release')

+             if opts.get('release') is None:

+                 release = self.session.getNextRelease({'name': name, 'version': version})

+             else:

+                 release = opts.get('release')

              if not opts.get('scratch'):

                  bld_info = self.initImageBuild(name, version, release,

                                                 target_info, opts)

getNextRelease has buildinfo as option (dict with at least name + version)

rebased onto 47780ea72d145d015d7a3b248b0cf33c5af922d4

a year ago

It is a tag id, not build id. Build will never exist for scratch. You've to manually create dict with nvr from task paramaters.

rebased onto 6403ef690bf92af26343625cca6c1c11db34e7c1

a year ago

self.getNextRelease doesn't exist - typo?

rebased onto 0e12b11

a year ago

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

a year ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

11 months ago

Commit 367fc19 fixes this pull-request

Pull-Request has been merged by tkopecek

11 months ago
Metadata