opam icon indicating copy to clipboard operation
opam copied to clipboard

Use simplified version comparison function

Open AltGr opened this issue 3 years ago • 2 comments
trafficstars

As specified in the docs, and not as handled in Debian: we used to run the Debian comparison from Dose, which handled epoch prefixes and revision suffixes in an undocumented way (undocumented in opam, not blaming Dose here!).

Closes #4272

AltGr avatar Jan 14 '22 16:01 AltGr

I thought we had agreed in #4566 to keep it to handle revisions

kit-ty-kate avatar Jan 14 '22 16:01 kit-ty-kate

Huh, I am sorry if I skipped that part of a discussion... but I don't see a link between the explicit package revisions discussed in #4566 and the general version-comparison function (on strings) changed here. It may indeed be possible to implement #4566 using debian-like revision syntax, but I don't think it would be a good idea to squeeze that info into the version string instead of using a separate record field.

AltGr avatar Jan 17 '22 13:01 AltGr