yifengyou / rpms / yum

Forked from rpms/yum 4 years ago
Clone

Blame SOURCES/yum-completion-helper.patch

5e9bef
diff -up yum-3.4.3/completion-helper.py.old yum-3.4.3/completion-helper.py
5e9bef
--- yum-3.4.3/completion-helper.py.old	2012-08-22 17:00:47.444104234 +0200
5e9bef
+++ yum-3.4.3/completion-helper.py	2012-08-22 17:00:57.954647525 +0200
5e9bef
@@ -70,6 +70,7 @@ def get_pattern(extcmds):
5e9bef
 
5e9bef
 def main(args):
5e9bef
     base = cli.YumBaseCli()
5e9bef
+    base.setCacheDir = lambda *x: True # use the system cachedir
5e9bef
     base.yum_cli_commands.clear()
5e9bef
     base.registerCommand(GroupsCompletionCommand())
5e9bef
     base.registerCommand(ListCompletionCommand())