#549 getBuild() returns a source of None
Closed 4 years ago Opened 5 years ago by bowlofeggs.

I've been poking around with the koji Python bindings today, and I noticed that the response from getBuild() does not include the source. koji list-api says that getBuild() will show the SCM URL in a field called source:

getBuild(buildInfo, strict=False)
  description: Return information about a build.

    buildID may be either a int ID, a string NVR, or a map containing
    'name', 'version' and 'release.

    A map will be returned containing the following keys:
      <snip>
      source: the SCM URL of the sources used in the build

But if I use the Koji Python bindings for a recent bodhi build, I see None as the source:

>>> c = koji.ClientSession('https://koji.fedoraproject.org/kojihub')
>>> print c.getBuild('bodhi-2.9.0-1.fc26')['source']
None

That field was added as part of the content generator work, classic rpm builds do not populate it at the moment

@bowlofeggs Does this issue impact bodhi package or build? we need calculate this issue priority.

@yulwang No impact on Bodhi, I just wanted to report it since it sounded like the documentation seemed misleading. Thanks for checking!

Commit b744195 relates to this ticket

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.14

4 years ago

Metadata Update from @tkopecek:
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata