diff options
| -rw-r--r-- | pym/gentoolkit/eshowkw/keywords_content.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py index 235d8a7..7f82026 100644 --- a/pym/gentoolkit/eshowkw/keywords_content.py +++ b/pym/gentoolkit/eshowkw/keywords_content.py @@ -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 |
