[Yum-devel] [PATCH] Fix utils basecmd setup, when we don't have any commands, BZ 557680
Seth Vidal
skvidal at fedoraproject.org
Fri Jan 22 17:28:22 UTC 2010
On Fri, 22 Jan 2010, James Antill wrote:
> ---
> utils.py | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/utils.py b/utils.py
> index dc5b122..65948b9 100644
> --- a/utils.py
> +++ b/utils.py
> @@ -203,7 +203,8 @@ class YumUtilBase(YumBaseCli):
> # Now parse the command line for real and
> # apply some of the options to self.conf
> (opts, self.cmds) = self._parser.setupYumConfig()
> - self.basecmd = self.cmds[0] # our base command
> + if self.cmds:
> + self.basecmd = self.cmds[0] # our base command
> self.extcmds = self.cmds[1:] # out extended arguments/commands
>
ACK
-sv
More information about the Yum-devel
mailing list