On Thu, Jul 11, 2013 at 12:31 PM, Colin Watson <[email protected]> wrote: > On Thu, Jul 11, 2013 at 09:40:30AM -0500, Ted Gould wrote: >> The graphical installer will query the Click packaging system to >> determine disk space cost of installing a new application or version. >> For instance, if it's just an upgrade on a single user system space used >> would be: sizeof(new) - sizeof(old). But if there is another user that >> has the same version it is: sizeof(new). If it's upgrading to a version >> already installed by another user and this user is the last user for the >> selected version it is: -1 * sizeof(old). > > I think you're first to lay it out so explicitly, but seems plausible.
Good point. The "available for download click-packages" scope I'm working on is the one that talks to the repo webservices and knows the compressed size of the package. Perhaps we should also make the "installed" size available on the webservices, so we can prevent download when there's not enough space for (temporary compressed package + uncompressed files). Post-installation the actual package file and the old version can be removed, but I think we should not remove the old one until after the installation is successful. cheers, -- alecu -- Mailing list: https://launchpad.net/~ubuntu-appstore-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-appstore-developers More help : https://help.launchpad.net/ListHelp

