cvs: pearweb /public_html release-upload.php

From: Date: Mon, 23 Jan 2006 17:01:48 +0000
Subject: cvs: pearweb /public_html release-upload.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-37718@lists.php.net to get a copy of this message
cellog Mon Jan 23 17:01:48 2006 UTC Modified files: /pearweb/public_html release-upload.php Log: prevent upload of release candidates containing lower-case rc instead of upper-case RC (1.0.0rc3 vs. 1.0.0RC3) version_compare() thinks 1.0.0rc3 < 1.0.0b3, but knows that 1.0.0RC3 > 1.0.0b3 (this is clearly documented at http://www.php.net/version_compare) http://cvs.php.net/viewcvs.cgi/pearweb/public_html/release-upload.php?r1=1.70&r2=1.71&diff_format=u Index: pearweb/public_html/release-upload.php diff -u pearweb/public_html/release-upload.php:1.70 pearweb/public_html/release-upload.php:1.71 --- pearweb/public_html/release-upload.php:1.70 Sat Jan 7 19:14:58 2006 +++ pearweb/public_html/release-upload.php Mon Jan 23 17:01:48 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: release-upload.php,v 1.70 2006/01/07 19:14:58 danielc Exp $ + $Id: release-upload.php,v 1.71 2006/01/23 17:01:48 cellog Exp $ */ auth_require('pear.dev'); @@ -269,6 +269,9 @@ $errors[] = "Stable versions must not have a postfix (use 'beta' for RC postfix)"; } } + if (substr($verinfo[2], 1, 2) = 'rc') { + $errors[] = 'Release Candidate versions MUST use upper-case RC versioning, not rc'; + } } if ($info->getChannel() != PEAR_CHANNELNAME) { $errors[] = 'Only channel ' . PEAR_CHANNELNAME .

« previous php.pear.cvs (#37718) next »