mirror of
https://github.com/php/php-src.git
synced 2025-01-19 10:13:38 +08:00
fix bug #249
This commit is contained in:
parent
5757ae3d24
commit
c05dfddda4
@ -731,6 +731,24 @@ class PEAR_Installer extends PEAR_Common
|
||||
if (!is_file($pkgfile)) {
|
||||
$origpkgfile = $pkgfile;
|
||||
$pkgfile = $this->extractDownloadFileName($pkgfile, $version);
|
||||
if (preg_match('#^(http|ftp)://#', $pkgfile)) {
|
||||
$pkgfile = $this->_downloadFile($pkgfile, $config, $options,
|
||||
$errors, $version, $origpkgfile,
|
||||
$state);
|
||||
if (PEAR::isError($pkgfile)) {
|
||||
return $pkgfile;
|
||||
}
|
||||
$tempinfo = $this->infoFromAny($pkgfile);
|
||||
if (isset($options['alldeps']) || isset($options['onlyreqdeps'])) {
|
||||
// ignore dependencies if there are any errors
|
||||
if (!PEAR::isError($tempinfo)) {
|
||||
$mywillinstall[strtolower($tempinfo['package'])] = @$tempinfo['release_deps'];
|
||||
}
|
||||
}
|
||||
$installpackages[] = array('pkg' => $tempinfo['package'],
|
||||
'file' => $pkgfile, 'info' => $tempinfo);
|
||||
continue;
|
||||
}
|
||||
if (!$this->validPackageName($pkgfile)) {
|
||||
return $this->raiseError("Package name '$pkgfile' not valid");
|
||||
}
|
||||
|
@ -48,12 +48,13 @@
|
||||
</maintainers>
|
||||
<release>
|
||||
<version>1.3b4</version>
|
||||
<date>2003-10-30</date>
|
||||
<date>2003-11-17</date>
|
||||
<state>beta</state>
|
||||
<notes>
|
||||
PEAR Installer:
|
||||
|
||||
* Bug #171 --alldeps with a rel="eq" should install the required version, if possible
|
||||
* Bug #249 installing from an url doesnt work
|
||||
|
||||
</notes>
|
||||
<provides type="class" name="OS_Guess" />
|
||||
|
Loading…
Reference in New Issue
Block a user