[packagekit] Removing packages when updating: a possible solution
Daniel Nicoletti
dantti85-pk at yahoo.com.br
Mon Jul 27 09:02:04 PDT 2009
I'm almost done in implementing
install_packages_simulate(packages);
and I'd like to add a signal that can reflect
the size of things to happen:
simulate_size(ACTION_SIZE, int bytes)
where ACTION_SIZE might be:
DOWNLOAD_SIZE,
INSTALLED_SIZE,
FREED_SIZE
This way we can show exactly the download size to the user
(including deps AND minus already downloaded packages),
Also how much space will be used, and the last one how much will
be freed (ie when removing packages);
If the backend does not emit this signal, we keep the current
behavior, otherwise we can print a nice label telling them.
It's also much more precise to forbit automatic upgrades while on
GPRS or when running on batteries.
Comments welcome,
Daniel.
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
More information about the PackageKit
mailing list