[Yum-devel] [PATCH] Add --setopt to YumUtilBase commands
Seth Vidal
skvidal at fedoraproject.org
Fri May 21 16:42:40 UTC 2010
On Fri, 21 May 2010, James Antill wrote:
> ---
> utils.py | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/utils.py b/utils.py
> index 0445b88..5a694e2 100644
> --- a/utils.py
> +++ b/utils.py
> @@ -166,6 +166,14 @@ class YumUtilBase(YumBaseCli):
> def doUtilConfigSetup(self,args = sys.argv[1:],pluginsTypes=(plugins.TYPE_CORE,)):
> # Parse only command line options that affect basic yum setup
> opts = self._parser.firstParse(args)
> +
> + # go through all the setopts and set the global ones
> + self._parseSetOpts(opts.setopts)
> +
> + if self.main_setopts:
> + for opt in self.main_setopts.items:
> + setattr(opts, opt, getattr(self.main_setopts, opt))
> +
> # Just print out the version if that's what the user wanted
> if opts.version:
> self._printUtilVersion()
ACK
-sv
More information about the Yum-devel
mailing list