From: Zac Medico Date: Thu, 29 May 2008 23:11:25 +0000 (-0000) Subject: Use a frozenset instead of a list for containment tests. (trunk r10489) X-Git-Tag: v2.1.5.3~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=935e17ddff1f6932b3ba0eafc1c52878edc80473;p=portage.git Use a frozenset instead of a list for containment tests. (trunk r10489) svn path=/main/branches/2.1.2/; revision=10490 --- diff --git a/bin/emerge b/bin/emerge index 054949bf9..5ab727cbf 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4807,10 +4807,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]