Skip to content

Fix reporting of root-level flat APT repositories - #896

Open
tigattack wants to merge 1 commit into
furlongm:mainfrom
tigattack:fix/flat-apt-repo-reporting
Open

tigattack wants to merge 1 commit into
furlongm:mainfrom
tigattack:fix/flat-apt-repo-reporting

Conversation

@tigattack

@tigattack tigattack commented Dec 2, 2026 •

Copy link
Copy Markdown

apt can list a flat repos configured with Suites: / in apt-cache policy without a suite or architecture field:

 500 https://developer.download.nvidia.com/compute/cuda/repos/debian13/x86_64  Packages

The parser from #889 skips this row as the architectuer field is empty, so for example the client can report nvidia-open as installed without reporting the NVIDIA repository, which makes Patchman show the mirror as unused by that host.

the fix here recognises Packages in 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_64 at priority 500. 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 policy output 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.

This branch has not been deployed

No deployments
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.

1 participant