-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Markus Ullmann wrote: > Zac Medico schrieb: >> The primary reason to use a digest for cache validation instead of a >> timestamp is that it allows the cache validation mechanism to work >> even if the tree is distributed with a protocol that does not >> preserve timestamps, such as git or subversion. This would make it >> possible to distribute metadata cache directly from git and >> subversion repositories (among others). > > So just to make sure I understand what you're after... You want to add > some checksum to the cache file to make sure that all its other vars > (line 1-17) are still the same even though there are timestamp issues?
Right. Portage currently uses timestamps for all metadata cache validation, but this mechanism is not suitable for protocols that don't preserve timestamps. In order to solve this problem, I'm suggesting that we use digests instead of timestamps. > Or is that checksum for the ebuild file (which is in the Manifest file > in the ebuild dir)? Since portions of the metadata may come from both the ebuild and its inherited eclasses, the metadata cache needs to be validated against both the ebuild and any eclasses that it has inherited. In order to validate the metadata cache, the checksums contained in the cache are compared to the current checksums of the corresponding ebuilds and eclasses. Does that answer your question? - -- Thanks, Zac -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmM4CAACgkQ/ejvha5XGaNbFwCfWJm8TcFVl49TAyn4Uet1Dm9L FjkAoOJyfhNcvTIFDd2Zimf86ZOZIBZG =oBYM -----END PGP SIGNATURE-----
