Bug 725608

Summary: Module does not parse epoch correctly
Product: [Fedora] Fedora Reporter: Peter Jennings <gosbear>
Component: perl-RPM-VersionCompareAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: perl-RPM-VersionCompare-0.1.1-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-17 01:04:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Jennings 2011-07-26 02:07:34 UTC
Description of problem:


Version-Release number of selected component (if applicable): 0.1.0-1


How reproducible: every time


Steps to Reproduce:
1. Use example from man page: RPM::VersionCompare::labelSplit('4:5.12.0-140')
2. Add digit to Epoch: RPM::VersionCompare::labelSplit('49:5.12.0-140')


Actual results: subroutine only returns single digit in ex.2 (i.e. '9')


Expected results: subroutine should return '49' for epoch in example 2


Additional info: I didn't find specification for length or constraints on epoch. The epoch specification needs to be researched to implement a robust solution.

Comment 1 Petr Pisar 2011-07-28 10:09:50 UTC
Thank you for finding this bug.

The only specification I know is <http://www.rpm.org/wiki/PackagerDocs/Dependencies#RequiringPackages> and it states `it's a number defaulting to 0' only.

Comment 2 Fedora Update System 2011-07-28 12:16:13 UTC
perl-RPM-VersionCompare-0.1.1-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/perl-RPM-VersionCompare-0.1.1-1.fc16

Comment 3 Fedora Update System 2011-07-28 12:16:37 UTC
perl-RPM-VersionCompare-0.1.1-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/perl-RPM-VersionCompare-0.1.1-1.fc15

Comment 4 Fedora Update System 2011-07-28 12:16:53 UTC
perl-RPM-VersionCompare-0.1.1-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/perl-RPM-VersionCompare-0.1.1-1.fc14

Comment 5 Fedora Update System 2011-07-31 03:31:33 UTC
Package perl-RPM-VersionCompare-0.1.1-1.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-RPM-VersionCompare-0.1.1-1.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/perl-RPM-VersionCompare-0.1.1-1.fc14
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-08-17 01:04:00 UTC
perl-RPM-VersionCompare-0.1.1-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-08-17 01:16:18 UTC
perl-RPM-VersionCompare-0.1.1-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-08-22 14:58:42 UTC
perl-RPM-VersionCompare-0.1.1-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.