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

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to