Not possible to get a list of packages in a component through the API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
Jonathan Lange |
Bug Description
<jelmer> Ursinha: actually, lp.distribution
<Ursinha> main_archive is not just main
<Ursinha> it includes universe as well, I was told
<jelmer> ah
<jelmer> I guess you could filter out some packages based on section, though that would be quite slow
<jml> jelmer: not quite! lp.distribution
<Ursinha> In [41]: ubuntu.main_archive
<Ursinha> Out[41]: <archive at https:/
<jml> oh crap
<Ursinha> ah
<jml> no "component" there
<jml> sorry
<james_w> yeah
* Ursinha looks for a bug
I'd like to get a list of packages in main component in ubuntu, but it's not possible do to that in Launchpad using the API unless iterating all packages like this:
<james_w> you you have to iterate over the return of getPublishedSources
<james_w> and do if publishing_
It should be possible to search directly by component instead of doing this.
Related branches
- Benji York (community): Approve (code)
-
Diff: 118 lines (+52/-3)4 files modifiedlib/lp/soyuz/interfaces/archive.py (+7/-2)
lib/lp/soyuz/model/archive.py (+7/-1)
lib/lp/soyuz/stories/webservice/xx-archive.txt (+26/-0)
lib/lp/soyuz/tests/test_archive.py (+12/-0)
Changed in launchpad: | |
status: | New → In Progress |
assignee: | nobody → Jonathan Lange (jml) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r13929 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 13929>.