[packagekit] Package size

Richard Hughes hughsient at gmail.com
Sat Jun 13 00:34:15 PDT 2009


On Fri, Jun 12, 2009 at 11:24 PM, Mounir
Lamouri<mounir.lamouri at gmail.com> wrote:
> That's surely a minor issue but I just realized package size is used
> as "Download size" when a package is not installed and as "Installed
> size" when installed. That's true for binary distribution but for
> source based, we know download size but we surely can't say download
> size = installed size.

Sure, very often installed size != download size.

> I don't think calculating installed file size is a good idea (it can
> take a long time) so is it possible to add a special 'bytes' value in
> details signal ?

I'm not sure I understand, the size is in bytes. If you don't know
this (or it doesn't make sense) then just set the size to zero.

> Like SIZE_UNKNOWN. It could be a way to prevent
> printing package size. By the way, this "special value" could be
> needed even for not installed packages like packages based on
> repositories which size is not known.

Again, 0 should work for this.

> I see something like "Download size: unknown" when not installed and
> only not print "installed size" if installed.

Sounds like a GUI bug I guess.

Richard.



More information about the PackageKit mailing list