[Yum-devel] [PATCH] Stops yum from saying that a package has been removed if an error prevents the removal from completing successfully. BZ 661962

Nick Jacek njacek at redhat.com
Tue Jun 14 18:53:10 UTC 2011


---
 output.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/output.py b/output.py
index 3840f82..1b7c88f 100755
--- a/output.py
+++ b/output.py
@@ -1135,6 +1135,9 @@ Downgrade %5.5s Package(s)
         out = ''
         
         self.tsInfo.makelists()
+        for txmbr in self.tsInfo.removed:
+            if self.rpmdb.contains(po=txmbr.po):
+                self.tsInfo.removed.remove(txmbr)
 
         #  Works a bit like calcColumns, but we never overflow a column we just
         # have a dynamic number of columns.
-- 
1.7.5.2



More information about the Yum-devel mailing list