]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Remove list_all_packages function
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Mon, 29 Aug 2011 15:10:32 +0000 (18:10 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Mon, 29 Aug 2011 15:10:32 +0000 (18:10 +0300)
This function is no longer used anywhere as both the current emerge
stuff and pretended emerges are handled differently.

emerge-timer.py

index 81810ce74b9c1cc5f0e004385fb150a101d3175a..34bc0c4ede847816c82dd27df46cefff59d2400d 100755 (executable)
@@ -86,30 +86,6 @@ def get_date(emerge_start):
 
 
 
-def list_all_packages():
-    """Go through PORTDIR and create a list of all the packages in portage"""
-
-    root = os.listdir(PORTDIR)
-    all_packages = []
-
-    for package_group in root:
-        group_dir = PORTDIR + package_group
-        if (os.path.isdir(group_dir)
-            and (package_group != "licenses")
-            and (package_group != "metadata")):
-
-            name_dir = os.listdir(group_dir)
-
-            for package_name in name_dir:
-                if ".xml" not in package_name:
-
-                    all_packages.append((package_group +
-                                         '/' + package_name))
-
-    return all_packages
-
-
-
 
 def get_package(name):
     """Take the user-input package name and search for it