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

Bug #20371 Error reporting on package downgrade should work consistently
Submitted: 2014-08-18 15:50 UTC
From: vbalazs Assigned:
Status: Open Package: PEAR (version 1.9.5)
PHP Version: 5.4.31 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2014-08-18 15:50 UTC] vbalazs (Balazs Varga)
Description: ------------ Call `upgrade` with an older version reports the error only if you don't have the latest version of a package but reports success if you have. I need to handle install/upgrade/downgrade cases from script and because of this I can't report instructions for the user about how to downgrade if he has the latest version installed of a package. Test script: --------------- 1., if you don't have the latest package version: pear install Validate-0.8.0 pear upgrade Validate-0.7.0 # exit with error pear/Validate is already installed and is newer than detected released version 0.7.0 upgrade failed 2., if you have the latest package version pear install Validate # it installs 0.8.5 pear upgrade Validate-0.7.0 # exit with success Nothing to upgrade Expected result: ---------------- Upgrade should exit with the same error even if the newest version is installed. Actual result: -------------- Returns success with the message: "Nothing to upgrade"

Comments