[packagekit] yum backend ordering problem

Richard Hughes hughsient at gmail.com
Sun Oct 14 13:33:32 PDT 2007

On Sun, 2007-10-14 at 13:46 -0400, James Bowes wrote:
> 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.

Ahh, gotcha. My concern is that the yum backend should also filter DEVEL
and NORMAL, and removing _do_filtering takes that option from us. DEVEL
should match *-devel and *-debuginfo - could we add that too?



More information about the PackageKit mailing list