Skip to content

Conversation

@thunder-coding
Copy link
Contributor

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
Contributor 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 !

Copy link
Member

@neolynx neolynx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks !

@neolynx neolynx merged commit 836d9f3 into aptly-dev:master Dec 26, 2025
2 checks passed
@thunder-coding thunder-coding deleted the dpkg-compliant-version-compare branch December 26, 2025 15:57
@codecov
Copy link

codecov bot commented Dec 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.54%. Comparing base (4e457aa) to head (61650e5).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1509      +/-   ##
==========================================
- Coverage   74.87%   74.54%   -0.33%     
==========================================
  Files         160      160              
  Lines       18518    18518              
==========================================
- Hits        13865    13805      -60     
- Misses       3502     3566      +64     
+ Partials     1151     1147       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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