[packagekit] Multiple calls for listing updates

Patryk Zawadzki patrys at pld-linux.org
Tue Mar 11 12:12:56 PDT 2008


On Tue, Mar 11, 2008 at 8:02 PM, Richard Hughes <hughsient at gmail.com> wrote:
> On Tue, 2008-03-11 at 19:36 +0100, Patryk Zawadzki wrote:
>  > When I opened my update viewer and clicked "update package" for 10
>  > different packages, I noticed that after installing 10 packages there
>  > were 10 queued requests for refreshing the update list.
>  Another bug :-)

Well...

>  > Wouldn't it be better to only queue new jobs if they differ from the last one in the
>  > queue?
>  Yes, as long as all the parameters match. Do you mean something like the
>  attached, or do I miss some subtle interaction with the client tools?

I think it's worth making the check for each job being enqueued. If
it's in queue next to an identical task, either both will fail or the
first one succeeds and the second one will result in nothing being
done. It's not exclusive for "list available updates."

-- 
Patryk Zawadzki
PLD Linux Distribution



More information about the PackageKit mailing list