mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Remove unused option in the repoquery call
Citing the man page:
-q, --query
For rpmquery compatibility, doesn't do anything.
This commit is contained in:
committed by
Matt Clay
parent
ac5b0ca59b
commit
1559bccdb3
@@ -445,7 +445,7 @@ def repolist(module, repoq, qf="%{repoid}"):
|
|||||||
def list_stuff(module, conf_file, stuff):
|
def list_stuff(module, conf_file, stuff):
|
||||||
|
|
||||||
qf = "%{name}|%{epoch}|%{version}|%{release}|%{arch}|%{repoid}"
|
qf = "%{name}|%{epoch}|%{version}|%{release}|%{arch}|%{repoid}"
|
||||||
repoq = [repoquery, '--show-duplicates', '--plugins', '--quiet', '-q']
|
repoq = [repoquery, '--show-duplicates', '--plugins', '--quiet']
|
||||||
if conf_file and os.path.exists(conf_file):
|
if conf_file and os.path.exists(conf_file):
|
||||||
repoq += ['-c', conf_file]
|
repoq += ['-c', conf_file]
|
||||||
|
|
||||||
@@ -728,7 +728,7 @@ def ensure(module, state, pkgspec, conf_file, enablerepo, disablerepo,
|
|||||||
if not repoquery:
|
if not repoquery:
|
||||||
repoq = None
|
repoq = None
|
||||||
else:
|
else:
|
||||||
repoq = [repoquery, '--show-duplicates', '--plugins', '--quiet', '-q']
|
repoq = [repoquery, '--show-duplicates', '--plugins', '--quiet']
|
||||||
|
|
||||||
if conf_file and os.path.exists(conf_file):
|
if conf_file and os.path.exists(conf_file):
|
||||||
yum_basecmd += ['-c', conf_file]
|
yum_basecmd += ['-c', conf_file]
|
||||||
|
|||||||
Reference in New Issue
Block a user