Skip to content

Conversation

@thunder-coding
Copy link

Hey maintainer of @termux here. Found this out during routine repository health checks for one of the apt repository: termux/termux-packages#27472

Description of the Change

Details in commit message(s) about the changes.

Checklist

  • unit-test added (if change is algorithm)
  • functional test added/updated (if change is functional)
  • man page updated (if applicable)
  • bash completion updated (if applicable)
  • documentation updated
  • author name in AUTHORS

Initially found by automated repository health checks used by Termux
in termux/termux-packages#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
@thunder-coding
Copy link
Author

I'd be very greatful to get a review on this, it's been 2 weeks since I created this PR. Thanks in advance!

@neolynx neolynx requested a review from a team December 15, 2025 09:20
@neolynx neolynx self-assigned this Dec 15, 2025
@neolynx
Copy link
Member

neolynx commented Dec 15, 2025

Thanks for the PR ! Unfortunately my day job didn't allow me to contribute more time for aptly, it will have to wait until Christmas break...
thanks for your patience !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants