mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Backport of devlop to 2016.11 with additional bug fixes
Taken the develop version of win_pkg.py and - import sys to get INT max size for compare_version() - enhanced compare_version to support versions of 'Not Found' and 'latest' which can occur in windows. - comment out import salt.utils.platform which is not in 2016.11 -- salt.utils.platform.is_windows() renamed back to salt.utils.is_windows() - added back the warning about win_repo_source_dir removal as this is required for 2016.11 version. Added on top of the backport is - Additional comments into the code -- Indicate pkg_list can return a 'version number' and also 'Not Found' version number -- _get_latest_pkg_version() can return 'version number' or 'latest' -- latest_version() can return blank if the latest version is installed or no version at all is installed - upgrade_available did not require to version() and latest_version() as latest_version() does everything required. - list_upgrades() added comments to explain code code, simply code to latest_version() rather than calling latest_version() and compare_versions() - list_available() is not required to force a refresh by default - version() added comments and questions as the return value is non standard - genrepo() add questions around the open mode and get_repo_data open mode - _repo_process_pkg_sls() -- file param was renamed to filename as file variable name classes with file() -- rename var version to version_str so as not to import version() function -- remove a section of code which was never executed and never used - install() -- simplied an if statements -- add more code comments
This commit is contained in:
parent
f46c858f25
commit
b314549a32
1 changed files with 404 additions and 250 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue