Home » PEAR » PEAR » Bug #5465
pear install --offline fails to display error
Details
| Submitted | 2005-09-20 19:58 UTC |
|---|---|
| From | glen at delfi dot ee |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | 5.0.5 |
| OS | PLD Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-09-20 19:58 UTC] glen at delfi dot ee
Description:
------------
$ pear install --offline --installroot=/tmp/pear --nodeps
File-1.2.1.tgz
PHP Fatal error: Call to undefined method
PEAR_Downloader_Package::log()
in /usr/share/pear/PEAR/Downloader/Package.php on line 147
relevant fragment from code:
if (!isset($options['soft'])) {
$this->log(0, $origErr->getMessage());
}
without --offline, the error message of broken File-1.2.1
is reported:
$ pear install --installroot=/tmp/pear --nodeps
File-1.2.1.tgz
WARNING: channel "pear.php.net" has updated its protocols,
use "channel-update pear.php.net" to update
warning: pear/File requires package "pear/PEAR"
downloading File-1.2.1.tgz ...
Starting to download File-1.2.1.tgz (15,892 bytes)
......done: 15,892 bytes
XML error: Undeclared entity warning at line 232
Download of "pear/File" succeeded, but it is not a valid
package archive
Error: cannot download "pear/File"
[2005-09-20 21:47 UTC] glen at delfi dot ee
found another package. unfortunately there's no newer
release available.
$ pear install --offline --installroot=/tmp/pear --nodeps
File_Ogg-0.1.2.tgz
PHP Fatal error: Call to undefined method
PEAR_Downloader_Package::log()
in /usr/share/pear/PEAR/Downloader/Package.php on line 147
$ pear install --installroot=/tmp/pear --nodeps
File_Ogg-0.1.2.tgz
Dependency 1 is not a rel="has" or rel="not" dependency,
and has no version
Parsing of package.xml from file
"/home/builder/tmp/tmpn7jf4H/package.xml" failed
Cannot initialize 'File_Ogg-0.1.2.tgz', invalid or missing
package file
Package "File_Ogg-0.1.2.tgz" is not valid
install failed