2 bugs found

This commit is contained in:
Greg Beaver 2003-12-01 00:59:14 +00:00
parent b27f71ca58
commit 1b95c31c77

View file

@ -521,12 +521,12 @@ class PEAR_Downloader extends PEAR_Common
$savestate = array_shift($get); $savestate = array_shift($get);
$this->pushError( "Release for $package dependency $info[name] " . $this->pushError( "Release for $package dependency $info[name] " .
"has state '$savestate', requires $state"); "has state '$savestate', requires $state");
continue; return false;
} }
if (in_array(strtolower($info['name']), $this->_toDownload) || if (in_array(strtolower($info['name']), $this->_toDownload) ||
isset($mywillinstall[strtolower($info['name'])])) { isset($mywillinstall[strtolower($info['name'])])) {
// skip upgrade check for packages we will install // skip upgrade check for packages we will install
continue; return false;
} }
if (!isset($this->_installed[strtolower($info['name'])])) { if (!isset($this->_installed[strtolower($info['name'])])) {
// check to see if we can install the specific version required // check to see if we can install the specific version required