[Yum-devel] [PATCH] Don't just delete obs. pkgs. (in history undo). BZ 652767.

James Antill james at and.org
Mon Nov 15 20:34:58 UTC 2010


---
 yum/__init__.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index f2a698d..e036f86 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -4250,6 +4250,11 @@ class YumBase(depsolve.Depsolve):
                     done = True
         for pkg in transaction.trans_data:
             if pkg.state == 'Obsoleting':
+                #  Note that obsoleting can mean anything, so if this is part of
+                # something else, it should be done by now (so do nothing).
+                if self.tsInfo.getMembers(pkg.pkgtup):
+                    continue
+                #  If not it should be an install/obsolete ... so remove it.
                 if self.remove(pkgtup=pkg.pkgtup):
                     done = True
         for pkg in transaction.trans_data:
-- 
1.7.2.3



More information about the Yum-devel mailing list