#28526 fixed yumpkg module

This commit is contained in:
Clark Perkins 2015-11-06 12:04:43 -06:00
parent 52d70c986d
commit e11f87be93

View File

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