cvs: php4 /pear/PEAR Dependency.php
| From: | Stig Bakken | Date: | Sun, 19 May 2002 16:32:18 +0000 |
| Subject: | cvs: php4 /pear/PEAR Dependency.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3936@lists.php.net to get a copy of this message | ||
ssb Sun May 19 12:32:18 2002 EDT
Modified files:
/php4/pear/PEAR Dependency.php
Log:
* compat fix
Index: php4/pear/PEAR/Dependency.php
diff -u php4/pear/PEAR/Dependency.php:1.8 php4/pear/PEAR/Dependency.php:1.9
--- php4/pear/PEAR/Dependency.php:1.8 Sun May 12 10:53:54 2002
+++ php4/pear/PEAR/Dependency.php Sun May 19 12:32:18 2002
@@ -17,7 +17,7 @@
// | Stig Bakken <ssb@fast.no> |
// +----------------------------------------------------------------------+
//
-// $Id: Dependency.php,v 1.8 2002/05/12 14:53:54 ssb Exp $
+// $Id: Dependency.php,v 1.9 2002/05/19 16:32:18 ssb Exp $
/**
* Methods for dependencies check. Based on Stig's dependencies RFC
@@ -90,6 +90,9 @@
*/
function checkPackage($name, $req = null, $relation = 'has')
{
+ if (substr($relation, 0, 2) == "v.") {
+ $relation = substr($relation, 2);
+ }
switch ($relation) {
case 'has':
if (!$this->registry->packageExists($name)) {
@@ -254,4 +257,4 @@
}
}
-?>
\ No newline at end of file
+?>