Chocolatey - Added lowering local packages for unifing both local and remote names to lowercase for comparison.

This commit is contained in:
Karol Dabkowski 2018-03-22 19:37:37 +01:00
parent 4be1a991c2
commit 123a86947c

View file

@ -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: