[packagekit] (part 2) detecting if a package is in the local cache

Richard Hughes hughsient at gmail.com
Tue Mar 3 07:47:08 PST 2009

The attached patch adds the following text to the Details::size value:

"If the package is not installed, and already downloaded and present in
the package manager cache, then this value should be set to zero."

So for:

Installed files = size of package
Not installed, not in cache = size of download
Not installed, in cache = 0

I don't think this would break anything, as it's only with the new
update viewer that we're calling Details() on updates.

Anyway, does this patch make sense? Comments welcome,



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pk-details-size-zero.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20090303/76ba6dfb/attachment-0004.bin>

More information about the PackageKit mailing list