dnf/enforce-api-reflect-changes-from-992475-in-completio.patch

29 lines
966 B
Diff
Raw Normal View History

2016-05-24 15:15:33 +00:00
From b3b58ff94900f8b989c80b49fd2afec0fa502538 Mon Sep 17 00:00:00 2001
From: Michal Luscon <mluscon@redhat.com>
Date: Tue, 24 May 2016 16:08:50 +0200
Subject: [PATCH 2/3] enforce-api: reflect changes from #992475 in
completion_helper (RhBug:1338504)
---
dnf/cli/completion_helper.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dnf/cli/completion_helper.py b/dnf/cli/completion_helper.py
index 2ca0360..26b575e 100644
--- a/dnf/cli/completion_helper.py
+++ b/dnf/cli/completion_helper.py
@@ -169,8 +169,8 @@ def main(args):
base = dnf.cli.cli.BaseCli()
cli = dnf.cli.Cli(base)
if args[0] == "_cmds":
- base.plugins.load(base.conf.pluginpath, [])
- base.plugins.run_init(base, cli)
+ base._plugins.load(base.conf.pluginpath, [])
+ base._plugins.run_init(base, cli)
print("\n".join(filter_list_by_kw(args[1], cli.cli_commands)))
return
cli.cli_commands.clear()
--
2.7.4