need API to discover where a given package is copied from
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned | ||
britney |
Fix Released
|
Undecided
|
Robert Bruce Park |
Bug Description
What I have: source package names and versions of packages that exist in -proposed.
What I need: to discover what PPAs these packages were copied from, if any.
The current API exposes package_
https:/
However there is not currently a way to get from "package name & version" to the relevant package_upload, as packageupload_link is always blank in the source_
Ideally there could be a new method on the archive class which gets this information directly, as my preference would be a single server roundtrip. If the packageupload_link field is fixed to contain the package_upload that would be suboptimal as it would require two server roundtrips to get the info I need from the info I start with.
Related branches
- Steve Langasek: Approve
-
Diff: 81 lines (+19/-12)2 files modifiedbritney2/policies/sourceppa.py (+12/-5)
tests/test_sourceppa.py (+7/-7)
summary: |
- packageupload_link is incorrectly blank in results from - getPublishedSources + need API to discover where a given package is copied from |
description: | updated |
Changed in britney: | |
status: | New → Fix Committed |
assignee: | nobody → Robert Bruce Park (robru) |
Changed in britney: | |
status: | Fix Committed → Fix Released |
I believe "most recent hop" is the information I'd want, as opposed to originating archive, because I am trying to group by bileto PPAs, and sometimes bileto PPAs get sources copied into them, in those cases I want to group by the bileto PPA, not the originating PPA.