mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
#28526 fixed yumpkg module
This commit is contained in:
parent
52d70c986d
commit
e11f87be93
@ -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']:
|
||||||
|
Loading…
Reference in New Issue
Block a user