From f19b566a40b0454e9325c38d1c75150c36fabd43 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 19 May 2002 16:32:18 +0000 Subject: [PATCH] * compat fix --- pear/PEAR/Dependency.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +?> -- 2.50.1