MetadataRegen: portdbapi.cp_all() already sorted
authorZac Medico <zmedico@gentoo.org>
Sun, 6 Jan 2013 09:14:18 +0000 (01:14 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 6 Jan 2013 09:14:18 +0000 (01:14 -0800)
pym/_emerge/MetadataRegen.py

index 6203c7851668bfc427022e87f40bcd2b38cb90d2..8dc7ebeee887a9713a1bdd864d200993ed7ec3a5 100644 (file)
@@ -36,7 +36,7 @@ class MetadataRegen(AsyncScheduler):
                portage.writemsg_stdout("Listing available packages...\n")
                every_cp = self._portdb.cp_all()
                portage.writemsg_stdout("Regenerating cache entries...\n")
-               every_cp.sort(reverse=True)
+               every_cp.reverse()
                try:
                        while not self._terminated_tasks:
                                yield every_cp.pop()