[packagekit] yum backend ordering problem

Tim Lauridsen tla at rasmil.dk
Mon Oct 15 02:14:29 PDT 2007


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.
>
> Ok to commit?
>
> -James
>   
Look fine to me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071015/73718222/attachment-0003.htm>


More information about the PackageKit mailing list