[Yum-devel] [PATCH 4/4] Add a dsCallback "r" state for reinstalled, as we are doing downgrade
Tim Lauridsen
tim.lauridsen at gmail.com
Fri Jun 11 07:25:51 UTC 2010
On Thu, Jun 10, 2010 at 10:48 PM, James Antill <james at and.org> wrote:
> ---
> output.py | 1 +
> yum/depsolve.py | 2 ++
> 2 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/output.py b/output.py
> index 060eaab..05a4e83 100755
> --- a/output.py
> +++ b/output.py
> @@ -1706,6 +1706,7 @@ class DepSolveProgressCallBack:
> 'u': _('updated'),
> 'o': _('obsoleted'),
> 'e': _('erased'),
> + 'r': _('reinstalled'),
> 'd': _('downgraded')}
> (n, a, e, v, r) = pkgtup
> modeterm = modedict[mode]
> diff --git a/yum/depsolve.py b/yum/depsolve.py
> index c197b7f..b661191 100644
> --- a/yum/depsolve.py
> +++ b/yum/depsolve.py
> @@ -794,6 +794,8 @@ class Depsolve(object):
> dscb_ts_state = txmbr.ts_state
> if txmbr.downgrades:
> dscb_ts_state = 'd'
> + if dscb_ts_state == 'u' and txmbr.reinstall:
> + dscb_ts_state = 'r'
> if dscb_ts_state == 'u' and not txmbr.updates:
> dscb_ts_state = 'i'
> self.dsCallback.pkgAdded(txmbr.pkgtup, dscb_ts_state)
> --
> 1.7.0.1
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100611/978ddd37/attachment-0001.html>
More information about the Yum-devel
mailing list