[feature request] provide a way to retrieve all source packages for a distribution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
following up on LP#1983514 -- I am looking for a way to retrieve all of the source packages associated with a private distribution.
I have experimented with the distribution's `searchSourcePa
It seems that individual source packages do have a key pointing directly to the distribution itself:
>>> pkg = distro.
>>> assert pkg.distribution is not None
>>> pkg.distributio
'https:/
However, the distribution exposes no API for traversing its source packages unless you already know what they are.
description: | updated |
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: api |
Does this need to be a separate bug from bug 1983514? It'd be difficult to implement without fixing that bug (because we'd fundamentally need to have something like `DistributionSo urcePackageCach e` to look at anyway) and if that bug were fixed then you could just do `distribution. searchSourcePac kages(source_ match=" ")` (possibly with us additionally adding a `DISTINCT` or something to the query to avoid getting duplicate results back).