| 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
|