On Monday, March 11, 2002, at 02:30 PM, Yoav Felberbaum wrote:
> At 13:53 -0500 11/3/02, David R. Morrison wrote:
>> I discovered in the last few weeks that for one of my packages 
>> (latex2html)
>> the upstream source changes from time to time without the name of the
>> sourcefile changing.  I've discussed this with the upstream maintainers
>> but they won't be changing their operating methods.  So here's what 
>> I've done
>> in latex2html-2K.1beta-8:  I store a copy of the source, as downloaded 
>> by
>> me last August, on my own website and I point the fink info file at 
>> that
>> copy.  The .patch file for this package patches the source from that 
>> fixed
>> copy to a particular snapshot of the upstream sourcefile (in this case,
>> March 7, 2002).  I use a PatchScript which tests to see if the source
>> being used is the "correct" one (from last August); if not, fink exits
>> and the users is asked to deleted the bad sourcefile cached in /sw/src.
>> If the source is the correct one, the patch is applied and the 
>> compilation
>> proceeds.
>
> Um. Why not just use MD5 - it's an established method for integrity 
> checking and exists on all installations of MacOS X AFAIK. No point in 
> re-inventing the wheel is there.

Why do you assume that he's /not/ using MD5?  It would be a perfectly 
appropriate way of implementing the "if the source is the correct one" 
stuff that he mentions.

Using MD5 doesn't solve the problem of the source file constantly 
changing (and rendering the patch unusable), it just verifies the 
integrity.

  -Ken


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to