Closed rsfzi closed 2 months ago
AptSources uses a set for the list of components. This makes removals of existing entries with at.repo() nearly impossible.
sources.list: deb [arch=amd64] https://deb.debian.org/debian/ bullseye main contrib non-free
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
sources = host.get_fact(AptSources)
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.
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 mainExpected 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.