Description
The method that the package manager uses to compare versions should use the osgiCompare to be in-line with the OSGi container's functionality.
This will be more predictable for any jackrabbit/oak/sling user as they (probably) already understand the OSGi versioning. A customer will only have to learn one comparison method as well.
This change will it will treat the '-' and '.' equally as version segment separator.
compareTo:
6.1.58-FP3-R002 < 6.1.58, i.e. 6.1.58 wins!
osgiCompareTo:
6.1.58-FP3-R002 > 6.1.58, i.e. 6.1.58-FP3-R002 wins!
see the tests in: https://svn.apache.org/viewvc/jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/VersionTest.java?view=markup