Skip to content

[BUG] chocolatey upgrade forces install even if package is already installed and force is false #57894

Open

Description

@adamsewell

Description
When running the chocolatey upgrade module command, if a package is already installed, the package is reinstalled not skipped. I'm testing with the saltminion package. Even including the force=False still reinstalls the package.

Setup
salt 'minion' chocolatey.upgrade 'saltminion'

Steps to Reproduce the behavior

  1. run salt 'minion' chocolatey.upgrade 'saltminion'
  2. verify package is installed and upgraded with salt 'minion' test.version
  3. run salt 'minion' chocolatey.upgrade 'saltminion' again and the package is reinstalled

Expected behavior
To skip installation of the same version of the package

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
           Salt: 3000.3
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: 2.0.3
      gitpython: 2.1.8
         Jinja2: 2.10
        libgit2: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.7
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.17 (default, Apr 15 2020, 17:20:14)
   python-gnupg: 0.4.1
         PyYAML: 3.12
          PyZMQ: 16.0.2
          smmap: 2.0.3
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.5
 
System Versions:
           dist: Ubuntu 18.04 bionic
         locale: UTF-8
        machine: x86_64
        release: 4.15.0-109-generic
         system: Linux
        version: Ubuntu 18.04 bionic

Activity

  1. added
    bug
    on Jul 9, 2020
  2. added
    Packaging
    on Jul 13, 2020
  3. sagetherage commented on Jul 13, 2020

    @sagetherage
    Contributor

    @krionbsd can you verify this packaging issue, please?

  4. added this to the Follow up milestone on Jul 13, 2020
  5. sagetherage commented on Jul 13, 2020

    @sagetherage
    Contributor

    @cmcmarrow can you verify this issue, please?

  6. removed this from the Follow up milestone on Aug 12, 2020
  7. added
    severity-high
    on Sep 24, 2020
  8. added this to the Approved milestone on Sep 24, 2020
  9. added
    Phosphorus v3005.0
    on Jun 18, 2021
  10. removed
    Phosphorus v3005.0
    on Mar 30, 2022
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

    PackagingWindowsbugseverity-high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions