[packagekit] yum backend ordering problem
jbowes at dangerouslyinc.com
Sun Oct 14 10:46:52 PDT 2007
On 10/14/07, Richard Hughes <hughsient at gmail.com> wrote:
> The _do_search method has to return the installed packages _first_ and
> then the available packages. This is done so we can filter on the
> packages without the data so we don't show each installed package twice.
res is a generator, so you can only iterate over it once. Attached is
a patch which fixes the ordering by putting all available packages
into another list, then filtering those after running through the
generator and filtering the installed packages.
Ok to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2748 bytes
Desc: not available
More information about the PackageKit