salt icon indicating copy to clipboard operation
salt copied to clipboard

fix(aptpkg): change glob to only match top-level .list files

Open nepeat opened this issue 2 months ago • 0 comments

What does this PR do?

This changes the glob pattern for APT sources from **/*.list to *.list, in line APT's default pattern in sources.list.d

What issues does this PR fix or reference?

Fixes #68475

Previous Behavior

Exception is thrown if there is a .list file in a subdirectory (e.g: backups/private.list)

New Behavior

No exception is thrown

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

  • [ ] Docs
  • [ ] Changelog - https://docs.saltproject.io/en/master/topics/development/changelog.html
  • [X] Tests written/updated

Commits signed with GPG?

No

nepeat avatar Nov 22 '25 00:11 nepeat