cellog Sun Feb 27 16:39:48 2005 EDT
Modified files:
/pear-core/PEAR Validate.php
Log:
make version validation less strict - only warn on versions
that are not x.y.z
http://cvs.php.net/diff.php/pear-core/PEAR/Validate.php?r1=1.34&r2=1.35&ty=u
Index: pear-core/PEAR/Validate.php
diff -u pear-core/PEAR/Validate.php:1.34 pear-core/PEAR/Validate.php:1.35
--- pear-core/PEAR/Validate.php:1.34 Wed Feb 23 13:52:39 2005
+++ pear-core/PEAR/Validate.php Sun Feb 27 16:39:47 2005
@@ -16,7 +16,7 @@
// | Authors: Gregory Beaver <cellog@xxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $Id: Validate.php,v 1.34 2005/02/23 18:52:39 cellog Exp $
+// $Id: Validate.php,v 1.35 2005/02/27 21:39:47 cellog Exp $
define('PEAR_VALIDATE_INSTALLING', 1);
define('PEAR_VALIDATE_UNINSTALLING', 2); // this is not bit-mapped like the
others
define('PEAR_VALIDATE_NORMAL', 3);
@@ -233,14 +233,14 @@
$this->_addFailure('version',
'Invalid version number "' .
$this->_packagexml->getVersion() . '"');
}
- return;
+ return false;
}
$version = $this->_packagexml->getVersion();
$versioncomponents = explode('.', $version);
if (count($versioncomponents) != 3) {
- $this->_addFailure('version',
- 'A version number must have 3 decimals (x.y.z)');
- return false;
+ $this->_addWarning('version',
+ 'A version number should have 3 decimals (x.y.z)');
+ return true;
}
$name = $this->_packagexml->getPackage();
// version must be based upon state
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|