On Mon, 2012-09-24 at 05:06 -0400, Zdenek Pavlas wrote:
> >  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.
> 
> There's a timestamp check in _preload_file(), it should never
> overwrite a newer file with an older one.  RPMs work the same way:
> preloading in getPackage() first, then verify the checksum in _getFile().

 The timestamps are server side timestamps though, not the downloaded
timestamps. It would probably be unusual for the time to go backwards
(having newer repodata with older timestamps) ... but it's not
guaranteed.

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to