Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoolkit r844 - trunk/gentoolkit/pym/gentoolkit/eshowkw
Date: Tue, 02 Nov 2010 14:07:15
Message-Id: 20101102140709.6395320051@flycatcher.gentoo.org
1 Author: scarabeus
2 Date: 2010-11-02 14:07:08 +0000 (Tue, 02 Nov 2010)
3 New Revision: 844
4
5 Modified:
6 trunk/gentoolkit/pym/gentoolkit/eshowkw/keywords_content.py
7 Log:
8 Revert altering keywords_content. This change was not ready yet.
9
10 Modified: trunk/gentoolkit/pym/gentoolkit/eshowkw/keywords_content.py
11 ===================================================================
12 --- trunk/gentoolkit/pym/gentoolkit/eshowkw/keywords_content.py 2010-11-02 14:05:00 UTC (rev 843)
13 +++ trunk/gentoolkit/pym/gentoolkit/eshowkw/keywords_content.py 2010-11-02 14:07:08 UTC (rev 844)
14 @@ -155,11 +155,7 @@
15 def __checkExist(self, pdb, package):
16 """Check if specified package even exists."""
17 try:
18 - cp = port.dep_expand(package, mydb=pdb, settings=pdb.settings).cp
19 - matches = []
20 - for repo in pdb.porttrees:
21 - for cpv in pdb.cp_list(mycp=cp,mytree=[repo]):
22 - matches.append((cpv, repo))
23 + matches = pdb.xmatch('match-all', package)
24 except port.exception.AmbiguousPackageName as Arg:
25 msg_err = 'Ambiguous package name "%s".\n' % package
26 found = 'Possibilities: %s' % Arg