Commit Graph

5 Commits

Author SHA1 Message Date
Yaksh Bariya 9a1a401248 make version comparision more similar to that of dpkg
Initially found by automated repository health checks used by Termux
in https://github.com/termux/termux-packages/issues/27472

The root problem was 4.3.5a comparing less than 4.3.5-rc1-1 by aptly
According to debian "4.3.5a" > "4.3.5-rc1-1"

This is because dpkg splits hyphen for revision at the first hyphen,
whereas aptly was splitting at the last hyphen which is different from
dpkg's behaviour.

dpkg behaviour: https://git.dpkg.org/cgit/dpkg/dpkg.git/tree/lib/dpkg/parsehelp.c#n242

Perhaps this wasn't detected as there was broken tests in the repository
since the initial commit of aptly. This also fixes those tests
2026-06-14 19:53:08 +02:00
Roland Mas 5c4f97f88e New upstream version 1.5.0+ds1 2023-01-02 14:19:29 +01:00
Sébastien Delafond 29e4ea6ec0 New upstream version 1.4.0+ds1 2019-12-22 14:57:35 +01:00
Sébastien Delafond b49bcafd67 New upstream version 1.2.0 2018-01-03 12:07:20 +01:00
Sébastien Delafond c926f2bf05 Imported Upstream version 1.0.1 2017-07-04 14:45:08 +02:00