[BUG] pkgrepo.managed deletes comment lines from sources.list, rather than adding new repo to sources.list.d #64451
Closed
2 of 9 tasks
Labels
Bug
broken, incorrect, or confusing behavior
debian
affects this operating system
package-repo
Regression
The issue is a bug that breaks functionality known to work in previous releases.
Milestone
Description
When I run pkgrepo.managed, rather than adding my new repo to my file in sources.list.d, it seems to move the first comment line from
sources.list
into my new file.Setup
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Run
state.apply
Observe:
Expected behavior
/etc/apt/sources.list.d/saltstack.list
should contain a line likedeb https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy main
andsources.list
should be unchanged.Versions Report
Minion salt --versions-report
(Provided by running salt-call --versions-report. Please also mention any differences in master/minion versions.)Master salt --versions-report
Additional context
As far as I can tell, every time I apply the state the first "normal" comment line (not a commented out
deb
line) gets deleted fromsources.list
and moved intosaltstack.list
.The text was updated successfully, but these errors were encountered: