[packagekit] optimize percentage in PackageKitBaseBackend

Mounir Lamouri mounir.lamouri at gmail.com
Fri Jun 26 13:09:36 PDT 2009


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



More information about the PackageKit mailing list