Bug 10818 - rpmvercmp does not compare version with epoch properly
Summary: rpmvercmp does not compare version with epoch properly
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-10 14:25 MSK by viy
Modified: 2007-02-12 11:40 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2007-02-10 14:25:36 MSK
rpmvercmp does not compare version with epoch properly:
[viy@hasher32 ~]$ rpm -q rpm
rpm-4.0.4-alt72
[viy@hasher32 ~]$ rpmvercmp  a2 a1
1
[viy@hasher32 ~]$ rpmvercmp  a2 0:a1
1
### should be -1
[viy@hasher32 ~]$ rpmvercmp  a2 3:a1
1
### should be 0
[viy@hasher32 ~]$ rpmvercmp  a2 0:a2
1
Comment 1 Andrey Rahmatullin 2007-02-10 14:29:32 MSK
use rpmevrcmp
Comment 2 viy 2007-02-12 11:37:43 MSK
вопрос  отпал.
Comment 3 viy 2007-02-12 11:40:57 MSK
bug is closed