[yum-commits] package-cleanup.py

James Antill james at osuosl.org
Thu Mar 5 17:48:06 UTC 2009


 package-cleanup.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6233f351bcd10499064ebf7d0f3bb2eaa7753252
Author: James Antill <james at and.org>
Date:   Thu Mar 5 12:47:59 2009 -0500

    Chagne arches to list, as set([1])[0] fails

diff --git a/package-cleanup.py b/package-cleanup.py
index 60d1bf7..9529b68 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -157,9 +157,9 @@ def findDupes(my):
     for (n) in pkgdict.keys():
         # is more than one package with this name ?
         if len(pkgdict[(n)]) > 1:
-            archs = set()
+            archs = []
             for (e,v,r,a) in pkgdict[(n)]:
-                archs.add(a)
+                archs.append(a)
             # If all packages with the same name has the same arch, then it is a dupe
             if len(archs) == 1:
                 refined[(n)] = pkgdict[(n)]


More information about the Yum-commits mailing list