Bug 10818

Summary: rpmvercmp does not compare version with epoch properly
Product: Sisyphus Reporter: viy <viy>
Component: rpmAssignee: placeholder <placeholder>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: at, glebfm, imz, ldv, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

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