On Wed, May 18, 2005 at 06:47:31PM -0400, Koen van der Drift wrote: > Why not let fink test for the presence of the patchscript file? Maybe > using a similar mechanism that test for the presence of the source in > /sw/src. Let me add that I have no idea about the inner workings of > fink, so I might be way out of line :)
As we discussed in the previous thread, there's no perfect way to know the names of the patch files used in a PatchScript because that field is "limited" to being a script of arbitrary complexity written in an arbitrary scripting language. There are some pretty good heuristics we could use, for example, validator checks things matching the regex: %a/.*\.patch But a false positive match would really suck for users. Conversely, accidentally omitting %a would never be caught. Source is more foolproof because that field is highly structured with a very limited syntax: given a URL to a file, determine the filename. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel