mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Chocolatey - Added lowering local packages for unifing both local and remote names to lowercase for comparison.
This commit is contained in:
parent
4be1a991c2
commit
123a86947c
1 changed files with 2 additions and 1 deletions
|
@ -919,7 +919,8 @@ def version(name, check_remote=False, source=None, pre_versions=False):
|
|||
salt "*" chocolatey.version <package name> check_remote=True
|
||||
'''
|
||||
installed = list_(narrow=name, local_only=True)
|
||||
|
||||
installed = {k.lower(): v for k, v in installed.items()}
|
||||
|
||||
packages = {}
|
||||
lower_name = name.lower()
|
||||
for pkg in installed:
|
||||
|
|
Loading…
Add table
Reference in a new issue