[Yum-devel] [PATCH 1/2] Save the full args. (including options) for the cmdline data.
seth vidal
skvidal at fedoraproject.org
Tue Jun 29 14:25:24 UTC 2010
On Tue, 2010-06-29 at 10:20 -0400, James Antill wrote:
> ---
> yum/__init__.py | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/yum/__init__.py b/yum/__init__.py
> index d6d467b..ed2b87f 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -1322,7 +1322,9 @@ class YumBase(depsolve.Depsolve):
> rpmdb_problems = self._rpmdb_warn_checks(warn=output_warn,
> ignore_pkgs=ignore_pkgs)
> cmdline = None
> - if hasattr(self, 'cmds') and self.cmds:
> + if hasattr(self, 'args') and self.args:
> + cmdline = ' '.join(self.args)
> + elif hasattr(self, 'cmds') and self.cmds:
> cmdline = ' '.join(self.cmds)
> self.history.beg(rpmdbv, using_pkgs, list(self.tsInfo),
> self.skipped_packages, rpmdb_problems, cmdline)
> @@ -1409,7 +1411,9 @@ class YumBase(depsolve.Depsolve):
> po.yumdb_info.from_repo = rpo.repoid
> po.yumdb_info.reason = txmbr.reason
> po.yumdb_info.releasever = self.conf.yumvar['releasever']
> - if hasattr(self, 'cmds') and self.cmds:
> + if hasattr(self, 'args') and self.args:
> + po.yumdb_info.command_line = ' '.join(self.args)
> + elif hasattr(self, 'cmds') and self.cmds:
> po.yumdb_info.command_line = ' '.join(self.cmds)
> csum = rpo.returnIdSum()
> if csum is not None:
ACK
-sv
More information about the Yum-devel
mailing list