From: Tomas V.V.Cox Date: Sat, 4 Oct 2003 16:17:31 +0000 (+0000) Subject: Fix: #61 [NEW]: error with pear install in pear 1.3b1 X-Git-Tag: BEFORE_HANDLERS_RESHUFFLE~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7630f962f103ebec235f29e61108cff59c700bca;p=php Fix: #61 [NEW]: error with pear install in pear 1.3b1 by outputting a full error message plus some help --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 632d6a4efc..414010b10e 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -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) {