Comment 12 for bug 359810

Revision history for this message
Bryce Harrington (bryce) wrote : Re: support filing bugs against source packages

I've attached a (totally untested) branch with a proposed (partial) fix for this.

It first looks for the binary package and returns it if found (satisfying pitti's second requirement).

If it is not found, then it uses apt.apt_pkg.SourceRecords() to look up the source package. If that's found, it then looks through that source package's binaries for one that is present in the cache and uses it. So that should mostly satisfy pitti's first requirement.

It does not merge dependencies of all binary packages into the Dependency field, nor runs all binary package hooks, so those could be added. (In the case of xorg-server, the dependencies and package hooks are always the same, but it could be different for other packages. Still, this moves us a step forward.)

Also, it probably should only consider binary packages that are physically installed on the user's machine. I'm not sure just checking that the package is in the cache is sufficient.

Anyway, feedback welcome.