mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
#28526 fixed yumpkg module
This commit is contained in:
parent
52d70c986d
commit
e11f87be93
1 changed files with 5 additions and 4 deletions
|
@ -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']:
|
||||
|
|
Loading…
Add table
Reference in a new issue