1 |
Author: zmedico |
2 |
Date: 2010-02-19 22:59:19 +0000 (Fri, 19 Feb 2010) |
3 |
New Revision: 15407 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dbapi/bintree.py |
7 |
Log: |
8 |
Use a frozenset for use inside binarytree._eval_use_flags(). |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/dbapi/bintree.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/dbapi/bintree.py 2010-02-19 22:55:52 UTC (rev 15406) |
14 |
+++ main/trunk/pym/portage/dbapi/bintree.py 2010-02-19 22:59:19 UTC (rev 15407) |
15 |
@@ -1046,7 +1046,7 @@ |
16 |
return False |
17 |
|
18 |
def _eval_use_flags(self, cpv, metadata): |
19 |
- use = metadata["USE"].split() |
20 |
+ use = frozenset(metadata["USE"].split()) |
21 |
raw_use = use |
22 |
iuse = set(f.lstrip("-+") for f in metadata["IUSE"].split()) |
23 |
use = [f for f in use if f in iuse] |