diff options
-rw-r--r-- | pear/PEAR/Dependency.php | 5 |
1 files changed, 4 insertions, 1 deletions
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 +?> |