Hi!

Attached patch completes the behavior change Jeremy introduced with 5badc2b67b9885d2993b6f77423bc632b8595b01 - "when an obsolete is available for a package, only install most matching arch rather than all available arches (rh#301661)". Currently arch is ignored for versioned obsoletes as the now added lines are missing in that code path. Please commit!

There is a test case in my "gold" branch but the patch depends on other patch sets in that branch - feel free to pull them in.

Special thanks to Zdenek Kabelac for reporting that problem and Thomas Wörner for hunting it down.

Have fun

        Florian
diff --git a/rpmUtils/updates.py b/rpmUtils/updates.py
index 861037f..597cd6d 100644
--- a/rpmUtils/updates.py
+++ b/rpmUtils/updates.py
@@ -241,6 +241,8 @@ class Updates:
                                         if self.returnNewest((pkgver, installedver)) == installedver:
                                             willInstall = 0
                                             break
+                                if rpm_a != arch and rpm_a in obs_arches[name]:
+                                    willInstall = 0
                                 if willInstall:
                                     if not obsdict.has_key(pkgtup):
                                         obsdict[pkgtup] = []
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to