[Yum-devel] [PATCH] Accept old outputs of "-q history addon-info saved_tx" in load_ts. BZ 728253
seth vidal
skvidal at fedoraproject.org
Thu Aug 4 20:51:42 UTC 2011
On Thu, 2011-08-04 at 10:06 -0400, James Antill wrote:
> ---
> yum/__init__.py | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/yum/__init__.py b/yum/__init__.py
> index fe312ce..530bfd4 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -5318,6 +5318,16 @@ class YumBase(depsolve.Depsolve):
> # 3+numrepos = num pkgs
> # 3+numrepos+1 -> EOF= txmembers
>
> + if data[0] == 'saved_tx:\n':
> + # Old versions of yum would put "saved_tx:" at the begining and
> + # two blank lines at the end when you used:
> + # "yum -q history addon-info saved_tx".
> + if data[-1] == 'history addon-info\n':
> + # Might as well also DTRT if they hand removed the plugins line
> + data = data[1:-3]
> + else:
> + data = data[1:-2]
> +
> # rpm db ver
> rpmv = data[0].strip()
> if rpmv != str(self.rpmdb.simpleVersion(main_only=True)[0]):
ACK
-sv
More information about the Yum-devel
mailing list