case 'delete':
break;
case 'installed_as':
- unset($this->pkginfo['filelist'][$data[0]]['installed_as']);
+ if (isset($this->pkginfo['filelist'])) {
+ unset($this->pkginfo['filelist'][$data[0]]['installed_as']);
+ }
if (isset($this->pkginfo['filelist']['dirtree'][dirname($data[1])])) {
unset($this->pkginfo['filelist']['dirtree'][dirname($data[1])]);
while(!empty($data[3]) && $data[3] != '/' && $data[3] != '\\'
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");
}
$code = $depchecker->callCheckMethod($error, $dep);
if ($code) {
if (isset($dep['optional']) && $dep['optional'] == 'yes') {
-/* die ugly hack die
- // Ugly hack to adjust the error messages
- $error = str_replace('requires ', '', $error);
- $error = ucfirst($error);
- $error = $error . ' is recommended to utilize some features.';*/
$optional_deps[] = array($dep, $code, $error);
} else {
$failed_deps[] = array($dep, $code, $error);
</maintainer>
</maintainers>
<release>
- <version>1.3b3</version>
- <date>2003-10-20</date>
+ <version>1.3b4</version>
+ <date>2003-11-17</date>
<state>beta</state>
<notes>
-OS/Guess.php:
-* Bug #25174 Wrong handling of readlink() in OS/Guess.php
-
PEAR Installer:
-* Bug #25413 Add local installed packages to list-all (Christian DickMann)
-* Bug #23221 Pear installer - extension re-install segfault
-* Better error detecting and reporting in "install/upgrade"
-* Various other bugfixes and cleanups
+* 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" />