Please expose the list of SourcePackageNames in the API

Bug #398573 reported by James Westby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned

Bug Description

Hi,

I have an application that wants to offer a choice of source packages to work
on. In order to provide a pleasing interface for this I want to know what all the
possibilities are to provide search and things. However, iterating over
getPublishedSources for each distribution (plus each distroseries, as you can't do
it for a whole archive) etc. will be painfully slow and inefficient.

For this use case if you could simply expose the list of SourcePackageNames that
soyuz knows about I can use this list (cached) to provide the interface, and
then confirm that the source package is in the distribution etc. if the user selects
it.

If there is an existing way to acheive this that doesn't include the cost of
getPublishedSources then I would be pleased to hear about it.

Thanks,

James

Tags: lp-soyuz
James Westby (james-w)
summary: - Please expose the list of SourcePackageNames
+ Please expose the list of SourcePackageNames in the API
Revision history for this message
James Westby (james-w) wrote :

Hi,

It would also be spiffy for this application if there was a function that
could go from a SourcePacakgeName to an IArchive collection of every
archive that has a publication of a package of that name, but I guess
that might be asking for too much?

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :

Actually, I'm going to close my own bug. I want to search on binary
packages as well, so even SourcePackageNames wouldn't get me all
the way there. A different solution is probably best.

Sorry for the noise.

James

Changed in soyuz:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.