#21611 [Ver->Bgs]: Problem with pear cli and release numbers

From: Date: Thu, 31 Jul 2003 08:44:25 +0000
Subject: #21611 [Ver->Bgs]: Problem with pear cli and release numbers
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19005@lists.php.net to get a copy of this message
ID: 21611 Updated by: nicos@php.net Reported By: jan at horde dot org -Status: Verified +Status: Bogus Bug Type: PEAR related Operating System: Linux PHP Version: 4CVS-2003-01-13 (stable) Assigned To: gschlossnagle New Comment: PEAR is using STANDARD PHP versions. And a PHP version can't have a suffix. Fix your versions name. Note: PEAR is using version_compare() to compare the versions. See: http://php.net/version_compare Previous Comments: ------------------------------------------------------------------------ [2003-07-24 02:42:04] meebey@php.net this problem still exists, I just reproduced it with my current SmartIRC release Net_SmartIRC-0.5.5p1 it's installed and when I do pear list-upgrades: meebey-mobile:/db/mysql/mysql# pear list-upgrades Available Upgrades (stable): ============================ Package Version Size Net_SmartIRC 0.5.5 183kB it shows me the older unpatched 0.5.5 version. So of course pear upgrade-all tries to upgrade and I get: meebey-mobile:/db/mysql/mysql# pear upgrade-all Release Warnings ================ w w downloading Net_SmartIRC-0.5.5p1.tgz ... ...done: 186,781 bytes upgrade to a newer version (0.5.5p1 is not newer than 0.5.5p1) I think the pear cli should check if the version has a suffix, if so, then it's newer then just the versionnumber... ------------------------------------------------------------------------ [2003-04-28 04:02:57] arnaud@php.net Assigning to georges ------------------------------------------------------------------------ [2003-01-13 04:23:25] jan at horde dot org Either PEAR (1.0.1) fails in calculating release numbers or the apd maintainers chose an invalid release number: $ pear list [...] | apd | 0.4p1 | stable | [...] $ pear list-upgrades AVAILABLE UPGRADES (STABLE): ============================ +---------+---------+------+ | PACKAGE | VERSION | SIZE | | apd | 0.4 | 39kB | +---------+---------+------+ $ pear upgrade apd downloading apd-0.4p1.tgz ... ...done: bytes upgrade to a newer version (0.4p1 is not newer than 0.4p1) $ pear upgrade-all RELEASE WARNINGS ================ +---+ | w | +---+ w downloading apd-0.4p1.tgz ... ...done: p39,605 bytes upgrade to a newer version (0.4p1 is not newer than 0.4p1) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21611&edit=1

« previous php.pear.dev (#19005) next »