1 |
Author: zmedico |
2 |
Date: 2008-06-20 17:36:18 +0000 (Fri, 20 Jun 2008) |
3 |
New Revision: 10745 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dep.py |
7 |
Log: |
8 |
Make isvalidatom() use the Atom cache to avoid validating the same atom |
9 |
twice. |
10 |
|
11 |
|
12 |
Modified: main/trunk/pym/portage/dep.py |
13 |
=================================================================== |
14 |
--- main/trunk/pym/portage/dep.py 2008-06-20 17:04:13 UTC (rev 10744) |
15 |
+++ main/trunk/pym/portage/dep.py 2008-06-20 17:36:18 UTC (rev 10745) |
16 |
@@ -611,6 +611,9 @@ |
17 |
1) 0 if the atom is invalid |
18 |
2) 1 if the atom is valid |
19 |
""" |
20 |
+ existing_atom = Atom._atoms.get(atom) |
21 |
+ if existing_atom is not None: |
22 |
+ atom = existing_atom |
23 |
if isinstance(atom, Atom): |
24 |
if atom.blocker and not allow_blockers: |
25 |
return 0 |
26 |
|
27 |
-- |
28 |
gentoo-commits@l.g.o mailing list |