New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg.latest improperly reports failure when latest package is already installed. #35747
Comments
@joejulian i'm having a hard time replicating this: sls file:
It does seem like in your PR that you note you are working on a fix so if you see where the issue is thats great. I'll label as a bug and it might be a system side issue, because it seems to be workign for me on 2016.3.2. |
@Ch3LL Now run it again. You successfully upgraded a package. Upgrading no packages seems to be where the bug is. |
Test to verify that pkg.latest can, when using a pkgs list, recognize packages that are already installed, and can install packages that are not. Test for issue saltstack#35747
Test to verify that pkg.latest can, when using a pkgs list, recognize packages that are already installed, and can install packages that are not. Test for issue saltstack#35747
I inverted the logic for determining targets to more logically represent the process we're trying to follow. This allows the tests to pass where they both previously failed. Fixes saltstack#35747
When installing multiple packages, pkg.latest was failing on arch and centos if the packages were already installed. This inverts the logic for determining if a package needs updated to make it simpler. This uncovered a flaw in the pkg.latest_version module for yum where it was not returning versions if a package was installed. Fixes saltstack#35747
This is caused by incorrect behavior of the This is fixed in #35880. |
I'll just use a for loop. |
Uh, for what? |
{% for pkg in pkgs %}... |
Yeah, we cleared it up via email. Unfortunately requisites check for either the name declaration or the ID declaration. It may be possible to alter the requisite system to pay attention to the |
This seems to be an issue with mac_brew_pkg's implementation as well: https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.mac_brew_pkg.html#salt.modules.mac_brew_pkg.latest_version
|
Description of Issue/Question
With multiple packages, pkg.latest fails if the latest packages are already installed:
Fails in Centos 7 also.
Versions Report
The text was updated successfully, but these errors were encountered: