Rewrite pkgng module

This commit is contained in:
Erik Johnson 2013-09-21 11:57:07 -05:00
parent cd2bde176c
commit 211274d17b
2 changed files with 722 additions and 263 deletions

View File

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