Bug 1032630 - rpmUtils.miscutils.rangeCheck ignores package release
Summary: rpmUtils.miscutils.rangeCheck ignores package release
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 20
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-20 13:56 UTC by Martin Kolman
Modified: 2013-11-20 14:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-20 14:03:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Kolman 2013-11-20 13:56:18 UTC
Description of problem:
The rangeCheck function ignores release id when checking if package satisfies package version request.

Version-Release number of selected component (if applicable):
yum-utils-1.1.31-18.fc20.noarch

How reproducible:
always

Steps to Reproduce:

>>> from rpmUtils import miscutils
>>> miscutils.rangeCheck(('python-blivet', '>=', ('', '0.23.5', '1.fc20')), ('python-blivet', 'noarch', '', '0.26', '1.fc21'))
>>> 1

Actual results:
1 is returned, meaning the ('python-blivet', 'noarch', '', '0.26', '1.fc21') satisfies the ('python-blivet', '>=', ('', '0.23.5', '1.fc20')) package request,
which is wrong, as the request and the package tuple have different release ids

Expected results:
0 is returned as the request & package tuples have different release ids

Additional info:
Official miscutils documentation: (includes rangeCheck documentation)
http://yum.baseurl.org/api/yum/rpmUtils/miscutils.html

Comment 1 Zdeněk Pavlas 2013-11-20 14:03:51 UTC
Since "0.26-1.fc21" >= "0.23.5-1.fc20", I believe the check SHOULD return 1.


Note You need to log in before you can comment on or make changes to this bug.