[Yum-devel] [PATCH] Preload from root cache when --cacheonly. BZ 830523, 903631
James Antill
james at fedoraproject.org
Thu Jul 18 13:28:03 UTC 2013
On Thu, 2013-07-18 at 11:53 +0200, Zdenek Pavlas wrote:
> - repo_gen_decompress(): always attempt to decompress if timestamps
> don't match. When we can't and --cacheonly, return None (compat).
>
> - _dirSetupMkdir_p(): mkdir when --cacheonly. We raise RepoError
> on failure (same exception, just different msg).
>
> - _retrieveMD(): preload and check the existing file first. If it does
> not match and --cacheonly, raise RepoError.
>
> This works well in casual use (I unlink my user cachedir often to trigger
> preloading), but I wouldn't be too shocked if this breaks something..
> The only way to test this to try it out.
ACK.
More information about the Yum-devel
mailing list