On 04/01/2010 05:17 PM, Brian Harring wrote: > On Thu, Apr 01, 2010 at 05:14:20PM -0700, Zac Medico wrote: >> You can configure eclass override behavior via eclass-overrides in >> /etc/portage/repos.conf, as documented in `man portage`. There are a >> number of caveats to eclass-overrides, and that's why it's not the >> default behavior. For example, beware that you'll need to set >> PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache" if your overlay >> eclasses modify any ebuild metadata (as documented in `man portage`). > > Why not add some boolean list to the repo definition controlling that, > rather then requiring people to specify the raw RSYNC option? > Something like REPO_OPTIONS='exclude-cache'? > > You can also jam some other options in there- one that might be useful > for folks is specifying the minimal sync period (sync this repo at > most once a day, or at most once an hour), etc.
I think it would be preferable to extend the cache format to improve the validation mechanism, as discussed here: http://archives.gentoo.org/gentoo-dev/msg_cfa80e33ee5fa6f854120ddfb9b468b3.xml That said, I wouldn't be opposed to adding something like the REPO_OPTIONS='exclude-cache' approach that you suggest. -- Thanks, Zac