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. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/359810 Title: support filing bugs against source packages To manage notifications about this bug go to: https://bugs.launchpad.net/launchpad/+bug/359810/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs