Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apt can list a flat repos configured with
Suites: /inapt-cache policywithout a suite or architecture field:The parser from #889 skips this row as the architectuer field is empty, so for example the client can report
nvidia-openas installed without reporting the NVIDIA repository, which makes Patchman show the mirror as unused by that host.the fix here recognises
Packagesin the third field when there's no fourht field and reports the normalised base URL directly. It keeps the existing logic for distro repos and flat repos with a suite path.To test, I ran the client against the policy row above. Before the fix it gave no repo, and after it gave
https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64at priority500. I also tested that standard distro repos and flat repos with a suite path still produce the same result.I also tested with
apt-cache policyoutput for four more flat repos: opensuse snapper, cri-o, nvidia container toolkit, and k8s. Before the fix the client dropped all four, and afterwards it reported them all as expected.