Revert altering keywords_content. This change was not ready yet.
authorscarabeus <scarabeus@gentoo.org>
Tue, 2 Nov 2010 14:07:08 +0000 (14:07 -0000)
committerscarabeus <scarabeus@gentoo.org>
Tue, 2 Nov 2010 14:07:08 +0000 (14:07 -0000)
svn path=/trunk/gentoolkit/; revision=844

pym/gentoolkit/eshowkw/keywords_content.py

index 235d8a702022f4cebaba4c25a9ee8badc4e2b1c1..7f820268b074f854fe6cc22d5920e1afe777f8ca 100644 (file)
@@ -155,11 +155,7 @@ class keywords_content:
        def __checkExist(self, pdb, package):
                """Check if specified package even exists."""
                try:
-                       cp = port.dep_expand(package, mydb=pdb, settings=pdb.settings).cp
-                       matches = []
-                       for repo in pdb.porttrees:
-                               for cpv in pdb.cp_list(mycp=cp,mytree=[repo]):
-                                       matches.append((cpv, repo))
+                       matches = pdb.xmatch('match-all', package)
                except port.exception.AmbiguousPackageName as Arg:
                        msg_err = 'Ambiguous package name "%s".\n' % package
                        found = 'Possibilities: %s' % Arg