Bug #15914 [Asn]: pear upgrade installs different version if desired version not found

From: Date: Wed, 18 Feb 2009 23:50:05 +0000
Subject: Bug #15914 [Asn]: pear upgrade installs different version if desired version not found
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-41@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=15914&edit=1 ID: 15914 Updated by: helgith@gmail.com Reported By: cweiske at php dot net Summary: pear upgrade installs different version if desired version not found Status: Assigned Type: Bug Package: PEAR PHP Version: 5.2.8 Assigned To: dufuz Roadmap Versions: New Comment: can't seem to reproduce it on my end at the moment, can someone else ? I will try to bolster the code around this before a release to at least not show a fatal error like that. Also Christian, you were trying to install with 3.4.0a4 today while Sebastian uses 3.4.0alpha4 :-) Previous Comments: ------------------------------------------------------------------------ [2009-02-18 23:48:11] dufuz <div id="changeset"> <span class="removed">-Assigned To:</span> <span class="added">+Assigned To: dufuz</span> <span class="removed">-Roadmap Versions: 1.8.0alpha2</span> <span class="added">+Roadmap Versions: 1.8.0alpha1, 1.8.0alpha2</span> </div> ------------------------------------------------------------------------ [2009-02-18 16:45:22] cweiske Description: ------------ When trying to upgrade a non-existent version of a package, pear tries to install the latest known version. When not using -f, it crashes. Test script: --------------- cweiske:~/Dev/cvs/pear/pear-core> pear upgrade -f phpunit/phpunit-1.2.3somestrange4 WARNING: failed to download pear.phpunit.de/phpunit, version "1.2.3somestrange4", will instead download version 3.3.14, stability "stable" WARNING: channel "pear.phpunit.de" has updated its protocols, use "pear channel-update pear.phpunit.de" to update Did not download optional dependencies: pear/Image_GraphViz, pear/Log, use --alldeps to download automatically downloading PHPUnit-3.3.14.tgz ... Starting to download PHPUnit-3.3.14.tgz (271,938 bytes) .............................. Expected result: ---------------- Actual result: -------------- cweiske:~/Dev/cvs/pear/pear-core> pear upgrade phpunit/phpunit-1.2.3somestrange4 WARNING: channel "pear.phpunit.de" has updated its protocols, use "pear channel-update pear.phpunit.de" to update Did not download optional dependencies: pear/Log, use --alldeps to download automatically Fatal error: Call to a member function getArchiveFile() on a non-object in /home/cweiske/Dev/cvs/pear/instpear/share/pear/PEAR/Downloader.php on line 476 Call Stack: 0,0035 444104 1. {main}() /home/cweiske/Dev/cvs/pear/instpear/share/pear/pearcmd.php:0 0,2017 5517840 2. PEAR_Command_Common->run() /home/cweiske/Dev/cvs/pear/instpear/share/pear/pearcmd.php:312 0,2017 5517840 3. PEAR_Command_Install->doInstall() /home/cweiske/Dev/cvs/pear/instpear/share/pear/PEAR/Command/Common.php:275 0,3672 11328376 4. PEAR_Downloader->download() /home/cweiske/Dev/cvs/pear/instpear/share/pear/PEAR/Command/Install.php:671 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=15914&edit=1

« previous php.pear.bugs (#41) next »