2012/1/12 Zdeněk Pavlas <[email protected]>

> 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
> [email protected]
> 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
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to