Drop check for repoquery command
There is no place that would possibly call it, so we can drop the check and function for generating cli. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
001ae1d7b4
commit
aa9c137412
@ -106,7 +106,6 @@ tools = [
|
||||
("createrepo_c", "/usr/bin/modifyrepo_c", is_createrepo_c_needed),
|
||||
("createrepo_c", "/usr/bin/mergerepo_c", is_createrepo_c_needed),
|
||||
|
||||
("yum-utils", "/usr/bin/repoquery", None),
|
||||
("git", "/usr/bin/git", None),
|
||||
("cvs", "/usr/bin/cvs", None),
|
||||
]
|
||||
|
@ -163,29 +163,3 @@ class CreaterepoWrapper(object):
|
||||
cmd.append("--compress-type=%s" % compress_type)
|
||||
|
||||
return cmd
|
||||
|
||||
def get_repoquery_cmd(self, repos, whatrequires=False, alldeps=False, packages=None, tempcache=True):
|
||||
cmd = ["/usr/bin/repoquery"]
|
||||
|
||||
if tempcache:
|
||||
cmd.append("--tempcache")
|
||||
|
||||
# a dict is expected: {repo_name: repo_path}
|
||||
for repo_name in sorted(repos):
|
||||
repo_path = repos[repo_name]
|
||||
if "://" not in repo_path:
|
||||
repo_path = "file://" + repo_path
|
||||
cmd.append("--repofrompath=%s,%s" % (repo_name, repo_path))
|
||||
cmd.append("--enablerepo=%s" % repo_name)
|
||||
|
||||
if whatrequires:
|
||||
cmd.append("--whatrequires")
|
||||
|
||||
if alldeps:
|
||||
cmd.append("--alldeps")
|
||||
|
||||
if packages:
|
||||
for pkg in packages:
|
||||
cmd.append(pkg)
|
||||
|
||||
return cmd
|
||||
|
Loading…
Reference in New Issue
Block a user