[Yum-devel] [PATCH 4/4] Add a dsCallback "r" state for reinstalled, as we are doing downgrade

James Antill james at and.org
Thu Jun 10 20:48:00 UTC 2010


---
 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



More information about the Yum-devel mailing list