Skip to content

RFE: add iterator interface to KojiTag object to get at the list of builds it represents #67

Description

@yazug
  • koji_wrapper version: master
  • Python version: 3
  • Operating System: any

Description

kt = KojiTag(tag='foo')
kt.builds(latest=True)

for build in kt:
...

What I Did

Right now you have to use the right parameter to iterate on the cached data.

for build in kt.tagged_list:
...

Because KojiTag already is based on only call listTagged() from koji once, it already is a Set of Builds and some other accessors to look at the same set of cached data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions