]> granicus.if.org Git - php/commitdiff
fix #171, --alldeps with a rel="eq" should install the required version, if possible
authorGreg Beaver <cellog@php.net>
Fri, 31 Oct 2003 04:52:00 +0000 (04:52 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 31 Oct 2003 04:52:00 +0000 (04:52 +0000)
pear/PEAR/Installer.php

index 184cc2572777e5d13eca590c8474ef460dfc8808..8e977911cc539546462edcab7f69d3ef740c7717 100644 (file)
@@ -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;