Skip to content

Ensure that pkg.installed function refreshes properly with windows. #34767

Closed

Description

Description of Issue/Question

A while back pkg.latest was fixed and I believe works properly but no one got around to fixing pkg.installed. In pkg.installed, if the version was 'latest', a refresh will happen no matter what
(possibly in addition to others) because of the lines

if salt.utils.is_true(kwargs.get('refresh', True)):
        refresh_db(saltenv)

in pkg.latest_version. Also if the version is not 'latest' and the cache was not already refreshed the state would fail because the call to pkg.list_pkgs (called by _find_install_targets) requires that the pkg database exist in order to work.

Activity

  1. rallytime commented on Jul 19, 2016

    @rallytime
    Contributor

    Thanks for filing this bug @hrumph and for the fix. Love it when that happens! :)

  2. added
    severity-medium
    fixed-pls-verify
    Core
    P3
    bug
    on Jul 19, 2016
  3. added this to the Approved milestone on Jul 19, 2016
  4. added a commit that references this issue on Aug 1, 2016
    88a9fb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreP3bugfixed-pls-verifyseverity-medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions