[Yum-devel] [PATCH] Do not set up repos in YumOptionParser. BZ 773512.
Zdeněk Pavlas
zpavlas at redhat.com
Thu Jan 12 11:11:09 UTC 2012
We should not do that because:
- yum commands have not been checked yet (see BZ).
- we should not download because we didn't lock yet.
- enabled repos are set up in self._getSacks() anyway.
---
cli.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/cli.py b/cli.py
index 6c65db9..8aa4f90 100755
--- a/cli.py
+++ b/cli.py
@@ -1941,10 +1941,6 @@ class YumOptionParser(OptionParser):
self.base.usage()
sys.exit(1)
- # make sure the added repos are setup.
- if len(opts.repos) > 0:
- self.base._getRepos(doSetup=True)
-
# Disable all gpg key checking, if requested.
if opts.nogpgcheck:
# Altering the normal configs. doesn't work too well, esp. with
--
1.7.4.4
More information about the Yum-devel
mailing list