What does this PR do?
Various enhancements for the FreeBSD pkgng execution module:
What issues does this PR fix or reference?
Better compatibility with
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.
The text was updated successfully, but these errors were encountered:
Thanks @amendlik - There are a couple of lint errors https://jenkins.saltstack.com/job/PR/job/salt-pr-lint-n/17759/violations/file/tests/unit/modules/test_pkgng.py/. Can you fix those up?
This change reimplements the pkgng.list_upgrades function to use the `pkg upgrade --dry-run` command. An earlier version of this function used `pkg version`, but it had several problems: 1) Long execution times when used with multiple repositories and the --no-repo-update argument. 2) It would show expected upgrades for a package when any repository had a newer version available. FreeBSD, by default, only applies upgrades from the repository the package was originally installed from. 3) It would show expected upgrades for locked packages.