[Yum-devel] [PATCH] Do not set up repos in YumOptionParser. BZ 773512.
tim.lauridsen at gmail.com
tim.lauridsen at gmail.com
Thu Jan 12 12:17:43 UTC 2012
2012/1/12 Zdeněk Pavlas <zpavlas at redhat.com>
> 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
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
YumOptionParser is also used by many yum utils by YumUtilBase (utils.py)
are you sure that you don't break anything there ?
YumUtilBase.doUtilYumSetup are calling self._getRepos(doSetup = True), so
it looks safe to me, but I have not tested it
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20120112/7b375de0/attachment.html>
More information about the Yum-devel
mailing list