[packagekit] optimize percentage in PackageKitBaseBackend
Daniel Nicoletti
dantti85-pk at yahoo.com.br
Fri Jun 26 13:15:08 PDT 2009
>Yes, now, percentage from PackageBaseBackend will not send another percentage
>message if the percent value is the same as before. I did not see percentage
>redefined in apt backend but if you did manage such optimization, you can now
>remove it as it's now a default.
well there are 2 apt backends, if you look into aptcc code you will see
the code storing the old value..
Thanks for forwarding that to PackageKit :D
Daniel.
----- Mensagem original ----
De: Mounir Lamouri <mounir.lamouri at gmail.com>
Para: PackageKit users and developers list <packagekit at lists.freedesktop.org>
Enviadas: Sexta-feira, 26 de Junho de 2009 17:09:36
Assunto: Re: [packagekit] optimize percentage in PackageKitBaseBackend
Daniel Nicoletti wrote:
> 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..
Yes, now, percentage from PackageBaseBackend will not send another percentage
message if the percent value is the same as before. I did not see percentage
redefined in apt backend but if you did manage such optimization, you can now
remove it as it's now a default.
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