Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AptSources uses set for components #1198

Closed
rsfzi opened this issue Sep 6, 2024 · 0 comments · Fixed by #1199
Closed

AptSources uses set for components #1198

rsfzi opened this issue Sep 6, 2024 · 0 comments · Fixed by #1199

Comments

@rsfzi
Copy link
Contributor

rsfzi commented Sep 6, 2024

Describe the bug

AptSources uses a set for the list of components.
This makes removals of existing entries with at.repo() nearly impossible.

To Reproduce

sources.list:
deb [arch=amd64] https://deb.debian.org/debian/ bullseye main contrib non-free

code:
sources = host.get_fact(AptSources)
components returned in this order: contrib non-free main

Expected behavior

The components should be a list in this order: main contrib non-free

I'm currently working on a patch and will add an pull request.

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 a pull request may close this issue.

1 participant