[yast-devel] JFYI: libzypp-6.11.0 supports download policy for commit.
Hi! With libzypp-6.11.0 you can now choose among several download modes. The mode is set in ZYppCommitPolicy. DownloadOnly, //!< Just download all packages to the local cache. //!< Do not install. Implies a dry-run. DownloadInAdvance, //!< First download all packages to the local cache. //!< Then start to install. DownloadInHeaps, //!< Similar to DownloadInAdvance, but try to split //!< the transaction into heaps, where at the end of //!< each heap a consistent system state is reached. DownloadAsNeeded //!< Alternating download and install. Packages are //!< cached just to avid CD/DVD hopping. This is the //!< traditional behaviour. Next steps: - Switch to use the satsolvers new install order computation. This should allow to actually compute the heaps for DownloadInHeaps. Currently it's the same as DownloadInAdvance. - For DownloadInAdvance/DownloadInHeaps we can add file conflict checks. This would be done after the packages are downloaded, but before anything gets installed. -- 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: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Michael Andres wrote:
Hi!
With libzypp-6.11.0 you can now choose among several download modes. The mode is set in ZYppCommitPolicy.
DownloadOnly, //!< Just download all packages to the local cache. //!< Do not install. Implies a dry-run.
DownloadInAdvance, //!< First download all packages to the local cache. //!< Then start to install.
DownloadInHeaps, //!< Similar to DownloadInAdvance, but try to split //!< the transaction into heaps, where at the end of //!< each heap a consistent system state is reached.
DownloadAsNeeded //!< Alternating download and install. Packages are //!< cached just to avid CD/DVD hopping. This is the //!< traditional behaviour.
Next steps:
- Switch to use the satsolvers new install order computation. This should allow to actually compute the heaps for DownloadInHeaps. Currently it's the same as DownloadInAdvance.
- For DownloadInAdvance/DownloadInHeaps we can add file conflict checks. This would be done after the packages are downloaded, but before anything gets installed.
Great! I already added --download-only option to few zypper commands like in, up, patch, dup, etc. Now it would be nice to be able to choose between the other two modes: DownloadAsNeeded and DownloadInAdvance/InHeaps. Michael, what about adding these to zypp.conf? I don't think it makes sense to have this (also) in zypper.conf, but zypper can provide an option to override the zypp.conf (or the default) mode for current operation. I tried DownloadInAdvance in zypper. Works nicely, but the output will need to be changed (maybe we call some zypp callbacks unnecessarily in case the package is already downloaded, i'll check this). I imagine yast will need some adaptation to this, too. I also think the DownloadInAdvance (or even better DownloadInHeaps) should be our new default. At least once yast and zypper is ready for this. -- cheers, jano Ján Kupec YaST team ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz ---------------------------------------------------------(EOF)---
participants (2)
-
Jano Kupec
-
Michael Andres