This patch skips over self obsoletes on packages (otherwise we get into a horrible loop and die). It was written by Panu, but I merged it for RH and I haven't seen him post it so...
I've attached it and it can be merged from: git pull http://people.redhat.com/jantill/gits/yum pkg-self-obsolete Or all my current patches can be merged from: git pull http://people.redhat.com/jantill/gits/yum james
diff --git a/rpmUtils/updates.py b/rpmUtils/updates.py
index e574035..dc68b4f 100644
--- a/rpmUtils/updates.py
+++ b/rpmUtils/updates.py
@@ -151,6 +151,10 @@ class Updates:
if flag in [None, 0]: # unversioned obsolete
if pkgdict.has_key((obs_n, None)):
for (rpm_a, rpm_e, rpm_v, rpm_r) in pkgdict[(obs_n, None)]:
+ # broken package obsoleting itself, rpm allows
+ # this so just silently ignore it...
+ if obs_n == name:
+ continue
if not obsdict.has_key(pkgtup):
obsdict[pkgtup] = []
obsdict[pkgtup].append((obs_n, rpm_a, rpm_e, rpm_v, rpm_r))
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Yum-devel mailing list [email protected] https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
