mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Rewrite pkgng module
This commit is contained in:
parent
cd2bde176c
commit
211274d17b
@ -303,10 +303,10 @@ def version(*names, **kwargs):
|
||||
'''
|
||||
ret = {}
|
||||
versions_as_list = \
|
||||
salt.utils.is_true(kwargs.get('versions_as_list'))
|
||||
salt.utils.is_true(kwargs.pop('versions_as_list', False))
|
||||
pkg_glob = False
|
||||
if len(names) != 0:
|
||||
pkgs = __salt__['pkg.list_pkgs'](versions_as_list=True)
|
||||
pkgs = __salt__['pkg.list_pkgs'](versions_as_list=True, **kwargs)
|
||||
for name in names:
|
||||
if '*' in name:
|
||||
pkg_glob = True
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user