Comment 4 for bug 1342716

Dmitry Ilyin (idv1985) wrote :

CENTOS: GOOD

rpmdev-vercmp '2014.1.fuel5.0-mira4' '2014.1.1.fuel5.1-mira0'
2014.1.fuel5.0-mira4 < 2014.1.1.fuel5.1-mira0

UBUNTU: BAD

sh -x compare.sh '2014.1.fuel5.0-mira4' '2014.1.1.fuel5.1-mira0'
+ a=2014.1.fuel5.0-mira4
+ b=2014.1.1.fuel5.1-mira0
+ dpkg --compare-versions 2014.1.fuel5.0-mira4 lt 2014.1.1.fuel5.1-mira0
+ [ 1 -eq 0 ]
+ echo 2014.1.fuel5.0-mira4 >= 2014.1.1.fuel5.1-mira0
2014.1.fuel5.0-mira4 >= 2014.1.1.fuel5.1-mira0

PUPPET: BAD

["2014", ".", "1", ".", "fuel", "5", ".", "0", "-", "mira", "4"]
["2014", ".", "1", ".", "1", ".", "fuel", "5", ".", "1", "-", "mira", "0"]
2014 vs 2014
. vs .
1 vs 1
. vs .
fuel vs 1
2014.1.fuel5.0-mira4 > 2014.1.1.fuel5.1-mira0

So, rpm does support our current naimg convention but deb and puppet does not. Bogdan fixed puppet's comparsion and CentOS updates are working. But Ubuntu has no fix yet.