[packagekit] optimize percentage in PackageKitBaseBackend

Daniel Nicoletti dantti85-pk at yahoo.com.br
Fri Jun 26 12:18:46 PDT 2009


What you did means i can now
emit percentage 50
emit percentage 50
emit percentage 50
emit percentage 50
emit percentage 51
emit percentage 51
emit percentage 51
?

in aptcc i was also storing the old value,
if you did this it's better to remove to avoid
duplicated checks..

Daniel.



----- Mensagem original ----
De: Mounir Lamouri <mounir.lamouri at gmail.com>
Para: Richard Hughes <hughsient at gmail.com>
Cc: PackageKit users and developers list <packagekit at lists.freedesktop.org>
Enviadas: Sexta-feira, 26 de Junho de 2009 15:03:21
Assunto: Re: [packagekit] optimize percentage in PackageKitBaseBackend

Richard Hughes wrote:
> On Fri, Jun 26, 2009 at 4:41 PM, Mounir Lamouri<mounir.lamouri at gmail.com> wrote:
>> I would like to know if it is possible to add this optimization
>> directly into PackageKitBaseBackend. This optimization needs to add a
>> member variable to PackageKitBaseBackend.
> 
> Yes, makes sense. Please do this. Thanks.
> 
> Richard.

Pushed.
By the way, for backend writers, it's better to use an integer when calling
percentage otherwise optimization will be useless.
And, I don't know if it's a bug or a feature but sub-percentage do not manage
None value.

Thanks,
Mounir
_______________________________________________
PackageKit mailing list
PackageKit at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit



      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com



More information about the PackageKit mailing list