mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
Fix bug of download tries when a local file is given
to install
This commit is contained in:
parent
a344aabb19
commit
dfcd61cef7
@ -648,10 +648,12 @@ class PEAR_Installer extends PEAR_Common
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$pkgfile = $this->_downloadFile($pkgfile, $config, $options, $errors,
|
||||
$version, $origpkgfile, $state);
|
||||
if (PEAR::isError($pkgfile)) {
|
||||
return $pkgfile;
|
||||
if (!@is_file($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'])) {
|
||||
@ -661,7 +663,7 @@ class PEAR_Installer extends PEAR_Common
|
||||
}
|
||||
}
|
||||
$installpackages[] = array('pkg' => $tempinfo['package'],
|
||||
'file' => $pkgfile, 'info' => $tempinfo);
|
||||
'file' => $pkgfile, 'info' => $tempinfo);
|
||||
}
|
||||
|
||||
// extract dependencies from downloaded files and then download them
|
||||
|
Loading…
Reference in New Issue
Block a user