summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-29 23:10:33 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-29 23:10:33 +0000
commit5a63d129458bd11aa2b1e0a82539a06ed9f5e93f (patch)
tree389181cbdef22724b4d7f25a48fc2c2d7545e18d
parent6f99155753a8659d766097ff120d69d61273dff2 (diff)
downloadportage-5a63d129458bd11aa2b1e0a82539a06ed9f5e93f.tar.gz
portage-5a63d129458bd11aa2b1e0a82539a06ed9f5e93f.tar.bz2
portage-5a63d129458bd11aa2b1e0a82539a06ed9f5e93f.zip
Use a frozenset instead of a list for containment tests.
svn path=/main/trunk/; revision=10489
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index b818c3225..df29f0462 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -4737,10 +4737,9 @@ class depgraph(object):
forced_flags.update(pkgsettings.useforce)
forced_flags.update(pkgsettings.usemask)
- cur_iuse = list(pkg.iuse.all)
- cur_iuse.sort()
cur_use = [flag for flag in pkg.use.enabled \
- if flag in cur_iuse]
+ if flag in pkg.iuse.all]
+ cur_iuse = sorted(pkg.iuse.all)
if myoldbest and myinslotlist:
previous_cpv = myoldbest[0]