On 20-04-2007 09:11:10 -0500, Yuri Vasilevski wrote: > On Fri, 20 Apr 2007 14:52:46 +0200 > Fabian Groffen <[EMAIL PROTECTED]> wrote: > > > Is the info you need in CVS/ ? > > > > That requires: > > a) an up-to-date CVS tree checkout > > b) a CVS tree (not a regular rsynced one) > > c) parsing of the CVS/Entries file > > > > So in principle, yes I think it can be done using the CVS directory, > > but I prefer not to. > > +1 on this one. > > I am writing some script to automate package building and use the > Header field to detect CVS revision changes. I know I could do it with > hash values, but then it would be harder to have builds from > different revisions of the same ebuild file time ordered.
I thought about it some longer, and it's even nastier than just having to get the value in a different way, because you also have to keep the value in the file in your "local" version. This either means also storing the CVS directory (in SVN, funny :) ) or devoting the first line of every file for it... Side question: is it a problem that you cannot easily see which (CVS) version of an ebuild is in the rsync tree you/user have/has? I guess that's what the $Header: $ thing is actually for. I can't recall any occasion myself that I used it to track an issue with it though. -- Fabian Groffen Gentoo on a different level -- [EMAIL PROTECTED] mailing list