Version comparison algorithm
Jan Engelhardt
jengelh at linux01.gwdg.de
Fri Nov 24 12:34:25 PST 2006
>> > According to RPM's algorithm, yes. It depends on the backend
>> > used really (RPM vs. DEB vs. ...).
>>
>> ASCII(2) = 50
>> ASCII(j) = 106
>>
>> Reverse logic? ;)
>
>Next you'll say that "2" is larger than "10"!? Comparing a version
>string is much more complex than a simple ASCII value comparison. Not
>to mention that it's impossible to get all cases right, since version
>strings are made for humans. ;-)
So tell me some _elegeant_ way to circumvent it. %version should remain
the same and %release should not really include 999 to override the 23
at all cost.
-`J'
--
More information about the Smart
mailing list