From: Stig Bakken Date: Sun, 19 May 2002 16:32:18 +0000 (+0000) Subject: * compat fix X-Git-Tag: RELEASE_0_4~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f19b566a40b0454e9325c38d1c75150c36fabd43;p=php * compat fix --- diff --git a/pear/PEAR/Dependency.php b/pear/PEAR/Dependency.php index 3b6f6a7684..4afe9b8671 100644 --- a/pear/PEAR/Dependency.php +++ b/pear/PEAR/Dependency.php @@ -90,6 +90,9 @@ class PEAR_Dependency */ 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 @@ class PEAR_Dependency } } -?> \ No newline at end of file +?>