]> granicus.if.org Git - php/commitdiff
* compat fix
authorStig Bakken <ssb@php.net>
Sun, 19 May 2002 16:32:18 +0000 (16:32 +0000)
committerStig Bakken <ssb@php.net>
Sun, 19 May 2002 16:32:18 +0000 (16:32 +0000)
pear/PEAR/Dependency.php

index 3b6f6a76843c50ded59bfec4e4cf097ef337b39f..4afe9b8671ef3ab9433c57c81df3e25c384369ea 100644 (file)
@@ -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
+?>