[yum-commits] package-cleanup.py

Tim Lauridsen timlau at osuosl.org
Thu Mar 5 10:28:03 UTC 2009


 package-cleanup.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 26f9d1f494aefe3b8f7dcd00b54b005d20c221bf
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Thu Mar 5 11:28:47 2009 +0100

    make cleanup work with the changes to findDupes

diff --git a/package-cleanup.py b/package-cleanup.py
index 7d4e130..b29a05b 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -179,15 +179,15 @@ def cleanOldDupes(my, confirmed):
     """remove all the older duplicates"""
     dupedict = findDupes(my)
     removedupes = []
-    for (n,a) in dupedict.keys():
+    for (n) in dupedict.keys():
         if n.startswith('kernel'):
             continue
         if n.startswith('gpg-pubkey'):
             continue
-        (e,v,r) = dupedict[(n,a)][0]
+        (e,v,r,a) = dupedict[(n)][0]
         lowpo = my.getInstalledPackageObject((n,a,e,v,r))
 
-        for (e,v,r) in dupedict[(n,a)][1:]:
+        for (e,v,r,a) in dupedict[(n)][1:]:
             po = my.getInstalledPackageObject((n,a,e,v,r))
             if po.EVR < lowpo.EVR:
                 lowpo = po


More information about the Yum-commits mailing list