[BUG] `refresh_db` is deprecated for `pkgrepo.managed`
Your setup
Formula commit hash / release tag
Versions reports (master & minion)
Pillar / config used
Bug details
Describe the bug
As reported in the Slack #testing channel (which will disappear after a while).
https://saltstackcommunity.slack.com/archives/C7KKN9P6W/p1588231385039600
Rebuilt our pre-salted images at https://github.com/netmanagers/salt-image-builder after the CVE release and now beginning to run the tests of the master branch across the SaltStack Formulas. Got our first failures in the
apt-formula, with aneonwarning that's been reintroduced by adevelop=>masterport 8 days ago (https://github.com/saltstack/salt/blame/master/salt/states/pkgrepo.py#L313-L318).https://travis-ci.org/github/myii/apt-formula/jobs/681357767#L1517-L1530
RuntimeError: The warning triggered on filename '/usr/local/lib/python3.7/dist-packages/salt/states/pkgrepo.py', line number 315, is supposed to be shown until version 3000 is released. Current version is now 3000. Please remove the warning.
- Out of interest, why is a
salt.utils.versions.warn_until()significant enough to trigger aRuntimeError?
Steps to reproduce the bug
Expected behaviour
Attempts to fix the bug
This line will need to be removed/adjusted:
https://github.com/saltstack-formulas/apt-formula/blob/baa83f2dc2a7ed593d00d1e3c784b47343fcfceb/apt/repositories.sls#L81