[Yum-devel] [PATCH] completion-helper: skip unavailable repos. BZ 809469.

Zdeněk Pavlas zpavlas at redhat.com
Wed Apr 4 11:43:02 UTC 2012


completion-helper uses --cacheonly option to avoid metadata
download, so new (or cleaned up) repos raise exceptions.

We work this around by setting skip_if_unavailable=1 on all
enabled repositories.
---
 completion-helper.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/completion-helper.py b/completion-helper.py
index e4164f7..2e95ced 100755
--- a/completion-helper.py
+++ b/completion-helper.py
@@ -74,6 +74,8 @@ def main(args):
     base.registerCommand(RepoListCompletionCommand())
     base.getOptionsConfig(args)
     base.parseCommands()
+    for repo in base.repos.listEnabled():
+        repo.skip_if_unavailable = True
     base.doCommands()
 
 if __name__ == "__main__":
-- 
1.7.4.4



More information about the Yum-devel mailing list