]> granicus.if.org Git - php/commitdiff
Fix: #61 [NEW]: error with pear install in pear 1.3b1
authorTomas V.V.Cox <cox@php.net>
Sat, 4 Oct 2003 16:17:31 +0000 (16:17 +0000)
committerTomas V.V.Cox <cox@php.net>
Sat, 4 Oct 2003 16:17:31 +0000 (16:17 +0000)
by outputting a full error message plus some help

pear/PEAR/Installer.php

index 632d6a4efc2417ce837a364cc65cc0ee8a6f2bb7..414010b10eeebc492b419d7d0af96ac3d80fd824 100644 (file)
@@ -738,6 +738,11 @@ class PEAR_Installer extends PEAR_Common
                                         $possible = array($ver => $inf['state']);
                                     }
                                 }
+                            } else {
+                                return $this->raiseError('No release with state equal to: \'' . implode(', ', $states) .
+                                                         "' found. The latest is $pkgfile-$ver ({$inf['state']}). Use " .
+                                                         "'pear install $pkgfile-$ver' or set the 'preferred_state' ".
+                                                         "to '{$inf['state']}' for installing this package.");
                             }
                         }
                         if ($possible) {