#21611 [Bgs]: Problem with pear cli and release numbers
| From: | meebey@php.net | Date: | Thu, 31 Jul 2003 19:16:25 +0000 |
| Subject: | #21611 [Bgs]: Problem with pear cli and release numbers | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19070@lists.php.net to get a copy of this message | ||
ID: 21611
Updated by: meebey@php.net
Reported By: jan at horde dot org
Status: Bogus
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4CVS-2003-01-13 (stable)
Assigned To: gschlossnagle
New Comment:
this should be then at least noted in the PEAR developer
documenation... My package is not the first one with this problem....
(and using p1 as suffix is pretty standard for software versions) so
that note is needed.
Previous Comments:
------------------------------------------------------------------------
[2003-07-31 03:44:24] nicos@php.net
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
------------------------------------------------------------------------
[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