[Yum-devel] [PATCH] Add obsoleted packages to obsoleting txmbrs
James Antill
james at and.org
Tue Dec 1 15:07:46 UTC 2009
---
yum/transactioninfo.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/yum/transactioninfo.py b/yum/transactioninfo.py
index c2fc804..a00342c 100644
--- a/yum/transactioninfo.py
+++ b/yum/transactioninfo.py
@@ -487,6 +487,12 @@ class TransactionData:
txmbr.relatedto.append((obsoleting_po, 'obsoletedby'))
txmbr.obsoleted_by.append(obsoleting_po)
self.add(txmbr)
+ for otxmbr in self.getMembersWithState(obsoleting_po.pkgtup,
+ [TS_OBSOLETING]):
+ if po in otxmbr.obsoletes:
+ continue
+ otxmbr.relatedto.append((po, 'obsoletes'))
+ otxmbr.obsoletes.append(po)
return txmbr
--
1.6.5.2
More information about the Yum-devel
mailing list