[Yum-devel] [PATCH] preload_from_sys also with --cacheonly, BZ 830523

James Antill james at fedoraproject.org
Mon Jun 11 20:35:53 UTC 2012


On Mon, 2012-06-11 at 10:49 +0200, Zdeněk Pavlas wrote:
> Allow creating user dirs, preloading from system cache, and metadata
> decompression with --cacheonly option.
> 
> This shifts semantic of --cacheonly from "no writes" to "no downloads".
> If preloading fails we still err instead of attempting to download.

 We need to do documentation/usage changes with this. Also have you
tested what happens for code which uses the old cache defaults (I mostly
assumed we had this behaviour traditionally because the only alternative
was to fail with much less obvious permission denied errors anyway).

 The patch should also change all the repo_gen_decompress() calls
outside yumRepo. Also what about xml => sqlite conversion?

 It might even be worth having this behind some kind of config.
variable, although obvious that generates more code paths which sucks.



More information about the Yum-devel mailing list