From: Zac Medico Date: Tue, 2 Mar 2010 20:47:21 +0000 (-0000) Subject: Use a frozenset for use inside binarytree._eval_use_flags(). (trunk r15407) X-Git-Tag: v2.1.8~93 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3317071a845eff0cd07d82c2ec0e6ff16c03542d;p=portage.git Use a frozenset for use inside binarytree._eval_use_flags(). (trunk r15407) svn path=/main/branches/2.1.7/; revision=15629 --- diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index ce162fccb..4420b728b 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -1046,7 +1046,7 @@ class binarytree(object): return False def _eval_use_flags(self, cpv, metadata): - use = metadata["USE"].split() + use = frozenset(metadata["USE"].split()) raw_use = use iuse = set(f.lstrip("-+") for f in metadata["IUSE"].split()) use = [f for f in use if f in iuse]