[packagekit] yum backend ordering problem

James Bowes 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...
Name: 0001-yum-search-must-return-installed-package-then-avail.patch
Type: text/x-patch
Size: 2748 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071014/43b75b95/attachment-0004.bin>

More information about the PackageKit mailing list