[yum-cvs] package-cleanup.py

Seth Vidal skvidal at linux.duke.edu
Fri Dec 7 04:43:19 UTC 2007


 package-cleanup.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 6c44aadeebd09d73c0c50e52661a3dc6e5309567
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Thu Dec 6 23:42:58 2007 -0500

    get rid of the confirmation to clean up old dupes when there are no dupes
    to clean up. rh bug: 328711

diff --git a/package-cleanup.py b/package-cleanup.py
index 46b99b3..47686f2 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -182,7 +182,10 @@ def cleanOldDupes(my, confirmed):
                 lowpo = po
                 
         removedupes.append(lowpo)
-
+    if len(removedupes) == 0:
+        print "No dupes to clean"
+        sys.exit(0)
+        
     print "I will remove the following old duplicate packages:"
     for po in removedupes:
         print "%s" % po



More information about the Yum-cvs-commits mailing list