diff options
author | Tomas V.V.Cox <cox@php.net> | 2003-10-04 16:17:31 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2003-10-04 16:17:31 +0000 |
commit | 7630f962f103ebec235f29e61108cff59c700bca (patch) | |
tree | 7ad3afe6b930715a268bd6717d5a67c48bbab214 | |
parent | 82e655537e42ba887304e8cf6e05b981a7185902 (diff) | |
download | php-git-7630f962f103ebec235f29e61108cff59c700bca.tar.gz |
Fix: #61 [NEW]: error with pear install in pear 1.3b1
by outputting a full error message plus some help
-rw-r--r-- | pear/PEAR/Installer.php | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |