Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.4

Request #10825 Only display the "invalid or missing package file"-error if it makes sense
Submitted: 2007-04-24 09:43 UTC Modified: 2009-02-05 00:40 UTC
From: berdir Assigned: dufuz
Status: Closed Package: PEAR (version 1.5.3)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.8.0alpha1    
Subscription  


 [2007-04-24 09:43 UTC] berdir (Sascha Grossenbacher)
Description: ------------ At the moment, everytime a upgrade/install failes, after the actual error message is also the following message: Cannot initialize 'channel://pear.php.net/Spreadsheet_Excel_Writer', invalid or missing package file This is true from a technical point of view, but it does not make sense to display it, if there is already a "better" error description, for example: Failed to download pear/Spreadsheet_Excel_Writer within preferred state "stable", latest release is version 0.9.1, stability "beta", use "channel://pear.php.net/Spreadsheet_Excel_Writer-0.9.1" to install In those cases, a second message about a invalid package file only confuses the users. So, a error message could for example set a flag to display the invalid/missing package file or not. Test script: --------------- pear config-set preferred_state stable pear install Spreadsheet_Excel_Writer Expected result: ---------------- Failed to download pear/Spreadsheet_Excel_Writer within preferred state "stable", latest release is version 0.9.1, stability "beta", use "channel://pear.php.net/Spreadsheet_Excel_Writer-0.9.1" to install install failed Actual result: -------------- Failed to download pear/Spreadsheet_Excel_Writer within preferred state "stable", latest release is version 0.9.1, stability "beta", use "channel://pear.php.net/Spreadsheet_Excel_Writer-0.9.1" to install Cannot initialize 'channel://pear.php.net/Spreadsheet_Excel_Writer', invalid or missing package file install failed

Comments

 [2009-01-30 18:39 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Annoys me as well - Will make it so those additional information only get shown when verbosity is bumped up.
 [2009-01-31 14:09 UTC] dufuz (Helgi Þormar Þorbjörnsson)
initialize message is hidden unless you pass -v Package pear/foo is not valid message is still around.
 [2009-02-05 00:40 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Assigned +Status: Closed
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.