[BUG] pkgrepo.managed for apt shows a change every highstate #61923
Labels
Bug
broken, incorrect, or confusing behavior
debian
affects this operating system
Duplicate
Duplicate of another issue or PR - will be closed
package-repo
severity-low
4th level, cosemtic problems, work around exists
Milestone
Description
pkgrepo.managed shows a change every highstate because of salt.utils.pkg.deb.strip_uri
Setup
Try setting up a Debian package repo. Let's use this one directly from the docs 😉: https://docs.saltproject.io/en/latest/ref/states/all/salt.states.pkgrepo.html
Steps to Reproduce the behavior
Now every highstate shows a change:
Expected behavior
It doesn't show changes when there are none.
This happens because the URL
http://dl.google.com/linux/chrome/deb/
ends with a / and this is stripped before being written to disk, but Salt is comparing the with the unmodified version.The text was updated successfully, but these errors were encountered: