For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > June 2004 > Re: [PEAR-QA] Re: package validation (was Re: [PEAR-QA] Re: PHP_Beautifier-0.0.6.1









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-QA] Re: package validation (was Re: [PEAR-QA] Re: PHP_Beautifier-0.0.6.1
Stefan Neufeind

2004-06-04, 8:56 pm

On 4 Jun 2004 at 13:35, Greg Beaver wrote:

> Tomas V.V.Cox wrote:
>
>
> You really need to check out the code in PEAR-1.4.0dev5.tgz, in
> particular PEAR_PackageFile and PEAR_ChannelFile classes. A package
> name validation regex is already in channel.xml and is fully supported
> by the installer.
>
> Far better than doing this in pre- and post- scripts is to leverage the
> existing power of polymorphism. Simply allow users to extend
> PEAR_PackageFile, and redefine the validation of package version. Most
> of this stuff should be server-side, and not in the pear packager, as
> things like this tend to change as the political decisions change.


Tomas, I was also thinking of doing this on the serverside. In my
understanding you were talking about the verify-step that takes place
when uploading a release.

> The only other alternative is to add a field to the channel.xml for
> describing version validation, which would be far more complex than I'm
> willing to deal with.


:-))

Stefan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com