https://bugzilla.novell.com/show_bug.cgi?id=307249#c9
--- Comment #9 from Peter Poeml
The main problem from my POV is that there is no distinction between automatic and user-initiated refresh:
- automatic: check if we're within the 'dont check' period. If yes, do nothing. If no, update as needed
Yes. That would match the yum behaviour. - If age of cached metadata is lower than $metadata_expire, regard it as fresh. Don't validate it. - if cached metadata is older than $metadata_expire, validate freshness by downloading repomd.xml. If hashes in repomd.xml still match cached files, don't download anything else... $metadata_expire is configurable (globally and per repo) and is set to 30 minutes by default, and can be set to smaller values for repositories which are known to change often. (I find that, in practice, lowering of this value is only required for developers in some situation. Like trying out a buildservice package which you just built, _and_ having updated less than 30 minutes before.)
- user-initiated: update as needed, regardless of the 'dont check' period
That's what I expect, as a user, if the documentation talks about "forced refresh". There is no direct yum equivalent for this, although it would definitely be useful. With yum, this can be achieved by rm /var/cache/yum/$repo/cachecookie
- forced: download everything
Yes. Needed for the unwanted case that this is needed. That matches the behaviour of the following yum operations: yum clean all yum <some command> But, this option should be renamed from "forced refresh" to "re-cache metadata", or similar, to avoid the ambiguity with the other option, see above. Note, there is already a commandline switch in zypper named "--force-download" which would fit perfectly well for this purpose. (The behaviour of --force-download which is described in the (Beta2) man page should probably be named --only-download instead.)
Would that fulfill everyone's requirement ?
There is one more. In addition, there should be a "use-only-cache" mode. Like yum -C. If there is no internet connection, or for people who don't want their dialin connection go online :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.