Comment 3 for bug 81014

Revision history for this message
Christian Reis (kiko) wrote : Re: [Bug 81014] Re: Don't assume entered package is a binary package

On Tue, Jan 23, 2007 at 09:07:22AM -0000, Björn Tillenius wrote:
> On Mon, Jan 22, 2007 at 05:56:59PM -0000, Christian Reis wrote:
> > Could we just change the order in precedence in the lookup? Would that
> > create other problems?
>
> I think changing the order of the lookups is enough. I can't think of
> any problems that would cause, but I haven't checked all the places that
> use guessPackageNames().

I checked:

    launchpad/scripts/bugzilla.py
    launchpad/scripts/debsync.py
    launchpad/xmlrpc/bug.py
    widgets/bugtask.py
    launchpad/database/distribution.py
    launchpad/browser/bugtarget.py

They all look as though matching source package name preferentially
would be fine. There's also the argument that using the source package
lets the user that knows what he's doing choose the right one, with the
binary package name being a fallback, so that ordering is probably
best.