From: Greg Beaver Date: Fri, 31 Oct 2003 04:52:00 +0000 (+0000) Subject: fix #171, --alldeps with a rel="eq" should install the required version, if possible X-Git-Tag: php-5.0.0b3RC1~823 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c76e88d0e48cfceab2d8c9afa6a0723ff95abe1;p=php fix #171, --alldeps with a rel="eq" should install the required version, if possible --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 184cc25727..8e977911cc 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -886,6 +886,11 @@ class PEAR_Installer extends PEAR_Common continue; } if (!isset($installed[strtolower($info['name'])])) { + // check to see if we can install the specific version required + if ($info['rel'] == 'eq') { + $deppackages[] = $info['name'] . '-' . $info['version']; + continue; + } // skip upgrade check for packages we don't have installed $deppackages[] = $info['name']; continue;