[yum-cvs] package-cleanup.py

Tim Lauridsen timlau at linux.duke.edu
Fri Nov 23 10:41:45 UTC 2007


 package-cleanup.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit da060803c11739c77e04d5ee6d10545f009f1294
Author: Tim Lauridsen <tla at rasmil.dk>
Date:   Fri Nov 23 11:39:16 2007 +0100

    Added patch by Ville Skytta to make 'package-cleanup --leaves' catch *lib and *libs

diff --git a/package-cleanup.py b/package-cleanup.py
index 7e3c92b..46b99b3 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -210,7 +210,7 @@ def listLeaves(all):
     leaves = ts.returnLeafNodes()
     for pkg in leaves:
         name=pkg[0]
-        if name.startswith('lib') or all:
+        if all or name.startswith('lib') or name.endswith('lib') or name.endswith('libs'):
             print "%s-%s-%s.%s" % (pkg[0],pkg[3],pkg[4],pkg[1])
 
 def listOrphans(my):



More information about the Yum-cvs-commits mailing list