Merge pull request #28656 from clarkperkins/bugfix/fix-yumpkg-module

#28526 fixed yumpkg module issue with pkg.installed
This commit is contained in:
Erik Johnson 2015-11-08 23:16:00 -06:00
commit 61ba00b1c3

View File

@ -755,10 +755,11 @@ def check_db(*names, **kwargs):
__context__['pkg._avail'] = avail
ret = {}
repoquery_cmd = repoquery_base + ' {0}'.format(" ".join(names))
provides = sorted(
set(x.name for x in _repoquery_pkginfo(repoquery_cmd))
)
if names:
repoquery_cmd = repoquery_base + ' {0}'.format(" ".join(names))
provides = sorted(
set(x.name for x in _repoquery_pkginfo(repoquery_cmd))
)
for name in names:
ret.setdefault(name, {})['found'] = name in avail
if not ret[name]['found']: