Comment 5 for bug 512878

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 512878] Re: archive.getPublishedSources matches package_name as substring

2010/1/26 Julian Edwards <email address hidden>:
> On Tuesday 26 January 2010 17:41:25 Martin Pool wrote:
>> 2010/1/26 Julian Edwards <email address hidden>:
>> > exact_match defaults to False.  I don't think this can realistically be
>> > changed now without affecting all the users of this.
>>
>> Is inexact matching a general pattern in Launchpad APIs?  It seems
>> pretty weird.
>
> I don't think it is.  Unfortunately this API was exposed as a complete match
> of what the internal method is, without really thinking about it :(

So I would hazard a guess that if anyone is using this api, they're
probably getting confusing results in the same way that we were, and
if they really want substring matching they are probably saying so.

However, perhaps we could at least add a big warning about this to the
apidoc? I suppose getPublishedBinaries etc would be similar.

--
Martin <http://launchpad.net/~mbp/>