Skip to content

Conversation

@sdherr
Copy link
Contributor

@sdherr sdherr commented Dec 22, 2025

This PR adds a layout parameter on AptPublications that allows you to choose between three different "styles" of package URL:

  1. nested_alphabetically: pool/main/a/aadlogin-selinux/aadlogin-selinux_1.0.016050002_amd64.deb Default, used currently here and in other deb repos like the main debian ones.
  2. nested_by_digest: pool/main/c0/7e2d/aadlogin-selinux_1.0.016050002_amd64.deb
  3. nested_by_both: Both 1 and 2, but the repo metadata will reference the by_digest urls. Useful if you have external dependencies that depend on known urls for particular packages.

Closes #1371

@sdherr
Copy link
Contributor Author

sdherr commented Dec 22, 2025

@quba42 I intend to do some more work when I come back in January on adding functional tests. However I have smoke-tested it locally and it seems to work for me, so feel free to take a look and see if you have comments if you get the chance.

@sdherr sdherr force-pushed the sh/hash-layout-option branch from 1ce6435 to 8d33856 Compare December 22, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement cache-friendly package URLs

1 participant