[Yum-devel] [PATCH] - make sure when we have multiple identical updating pkgs that we don't look at them as complex updates

Seth Vidal skvidal at fedoraproject.org
Wed Jun 23 18:29:30 UTC 2010


fixes part of rh bug: 607258
---
 rpmUtils/updates.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/rpmUtils/updates.py b/rpmUtils/updates.py
index c231f5c..c61788b 100644
--- a/rpmUtils/updates.py
+++ b/rpmUtils/updates.py
@@ -113,11 +113,15 @@ class Updates:
         for (n, a, e, v, r) in pkglist:
             if (n, a) not in returndict:
                 returndict[(n, a)] = []
+            if (e,v,r) in returndict[(n, a)]:
+                continue
             returndict[(n, a)].append((e,v,r))
 
             if Nonelists:
                 if (n, None) not in returndict:
                     returndict[(n, None)] = []
+                if (a,e,v,r) in returndict[(n, None)]:
+                    continue
                 returndict[(n, None)].append((a, e, v, r))
             
         return returndict
-- 
1.7.0.1



More information about the Yum-devel mailing list