On Wednesday 16 December 2009 15:05:56 Jano Kupec wrote:
Looking into the future, it would be nice to be able to get such info in advance, before commit. That way the apps can show info like "need to get 100 MiB of packages (120 MiB is already cached)" or "need to get 20 of 30 packages (10 are already cached)". And then the commit progress.
Another issue is calculation of bytes that need to be downloaded _before_ we start the commit [1][2]. We do want to know how the package is provided. Whether from cache and whether a delta/patch rpm will be used. And we want to know this before the commit.
Ok. I was thinking about adding some convenience methods to allow downloading and removing packages to/from the local disk cache anyway. I often just want to get a .rpm to my local disk, without solving and installing it. I can add some more convenience to to tell you if, and how much will be downloaded. I can also guess whether a delta will be considered. For sure we know this at the time we actually need it, and whether it works we only know after the download. For factory we'll switch from the libzypp computed installation order to the one the satsolver provides. It does a better job in breaking up dependency cycles and detecting the need to delay package deletions. We also want to offer parallel downloads while installing. Together with the new install order there will be a transaction class that basically contains all the information the zypper installation summary shows. I take care it also offers a size and download statistic. Then you can use it as base for your summary screen. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org