On Fri, 2012-09-21 at 16:33 +0200, Zdeněk Pavlas wrote:
> - If retrieve_can_fail==True, return None instead of exception
>   also when cacheonly.
> 
> - Save few lines by running cacheonly path after preload+checkMD.
>   Preloading is no-op when using root cache, so we should never
>   hit EPERM here.

 I'm 99% sure the reason for the ordering here is to solve this case:

1. Getting a non-unique name like "primary.xml.gz".

2. root cache has an old version.

3. user runs, and does the preload ... but has to download a newer
version anyway. No real problem.

4. user runs again, but now we _really_ don't want to do the preload
again as it'll delete the correct data.

...so we check what's in our cache before loading from our preload
cache.

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to