quickpkg: optimize */* matches
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Oct 2011 05:13:03 +0000 (22:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Oct 2011 05:13:03 +0000 (22:13 -0700)
bin/quickpkg

index 69472248fcef0abc44488872afe696ac3b4a7331..ced2468886f8b1bddfb5a602bf29cb204bd30854 100755 (executable)
@@ -198,6 +198,11 @@ def quickpkg_extended_atom(options, infos, atom, eout):
        atoms = []
        for cpv in vardb.cpv_all():
                cpv_atom = Atom("=%s" % cpv)
+
+               if atom == "*/*":
+                       atoms.append(cpv_atom)
+                       continue
+
                if not extended_cp_match(atom.cp, cpv_atom.cp):
                        continue