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");
}
</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" />