["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.
CENTOS: GOOD
rpmdev-vercmp '2014.1. fuel5.0- mira4' '2014.1. 1.fuel5. 1-mira0' fuel5.0- mira4 < 2014.1. 1.fuel5. 1-mira0
2014.1.
UBUNTU: BAD
sh -x compare.sh '2014.1. fuel5.0- mira4' '2014.1. 1.fuel5. 1-mira0' 1.fuel5. 0-mira4 1.1.fuel5. 1-mira0 fuel5.0- mira4 lt 2014.1. 1.fuel5. 1-mira0 fuel5.0- mira4 >= 2014.1. 1.fuel5. 1-mira0 fuel5.0- mira4 >= 2014.1. 1.fuel5. 1-mira0
+ a=2014.
+ b=2014.
+ dpkg --compare-versions 2014.1.
+ [ 1 -eq 0 ]
+ echo 2014.1.
2014.1.
PUPPET: BAD
["2014", ".", "1", ".", "fuel", "5", ".", "0", "-", "mira", "4"] fuel5.0- mira4 > 2014.1. 1.fuel5. 1-mira0
["2014", ".", "1", ".", "1", ".", "fuel", "5", ".", "1", "-", "mira", "0"]
2014 vs 2014
. vs .
1 vs 1
. vs .
fuel vs 1
2014.1.
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.