Req #19299 [Opn]: Handle max + exclude version
| From: | daniel dot oconnor at gmail dot com | Date: | Sun, 01 Apr 2012 14:17:18 +0000 |
| Subject: | Req #19299 [Opn]: Handle max + exclude version | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8488@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19299&edit=1
ID: 19299
Updated by: daniel.oconnor@gmail.com
Reported By: Fedora at FamilleCollet dot com
Summary: Handle max + exclude version
Status: Open
Type: Feature/Change Request
Package: PEAR_Command_Packaging
Operating System: GNU/Linux (Fedora 16)
Package Version: 0.2.0
PHP Version: 5.4 RC (specify # in Description)
Roadmap Versions:
New Comment:
(PS: feel absolutely free to send in pull requests)
Previous Comments:
------------------------------------------------------------------------
[2012-04-01 15:16:54] doconnor
So applying this breaks tests -
http://test.pear.php.net:8080/job/PEAR_Command_Packaging/33/testReport/junit/(ro
ot)/tests_/_var_lib_jenkins_workspace_PEAR_Command_Packaging_tests_make_rpm
_spec_test_nodocs_dupdeps_phpt/
------------------------------------------------------------------------
[2012-02-19 19:35:28] remicollet
Added #patch bug:19299;patch:max-exclude.patch;revision:1329680128;.
------------------------------------------------------------------------
[2012-02-19 19:35:00] remicollet
Description:
------------
The package from horde channel comes with
<package>
<name>Horde_Translation</name>
<channel>pear.horde.org</channel>
<min>1.0.0</min>
<max>2.0.0</max>
<exclude>2.0.0</exclude>
</package>
The min is lost.
The max + exclude should be handle as "<" instead of adding an awful
Conflicts.
Can you please consider the attached patch
P.S. 1 line per requires seems more "legible" (as required by
Guidelines)
Test script:
---------------
pear make-rpm-spec Horde_Exception-1.0.8.tgz
Expected result:
----------------
Requires: php-pear(pear.horde.org/Horde_Translation) >= 1.0.0
Requires: php-pear(pear.horde.org/Horde_Translation) < 2.0.0
Requires: php-pear(PEAR) >= 1.7.0
Actual result:
--------------
Requires: php-pear(pear.horde.org/Horde_Translation) <= 2.0.0,
php-pear(PEAR) >= 1.7.0
Conflicts: php-pear(pear.horde.org/Horde_Translation) = 2.0.0
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19299&edit=1