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

diff --git a/yum/__init__.py b/yum/__init__.py
index 0304fea..ea7b7d1 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -3702,6 +3702,13 @@ class YumBase(depsolve.Depsolve):
             if self.conf.protected_packages and po.pkgtup == kern_pkgtup:
                 self.logger.warning(_("Skipping the running kernel: %s") % po)
                 continue
+            if self.tsInfo.getMembers(po.pkgtup):
+                for txmbr in self.tsInfo.matchNaevr(po.name):
+                    self.logger.warning(_("Removing %s from the transaction") %
+                                        txmbr)
+                    self.tsInfo.remove(txmbr.pkgtup)
+                #  Do the remove as well, this makes multi-reinstall work too.
+                # etc.
             txmbr = self.tsInfo.addErase(po)
             tx_return.append(txmbr)
         
-- 
1.7.2

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to