Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yazug opened this issue Jan 11, 2019 · 0 comments

Comments

@yazug
Copy link
Member

yazug commented Jan 11, 2019

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant