From: Zac Medico Date: Wed, 11 Mar 2009 06:37:58 +0000 (-0000) Subject: Remove unnecessary creation of lists when iterating over digraphs for X-Git-Tag: v2.1.6.8~79 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2e1316a18be8f06ec1583cc6b7508acab641aee;p=portage.git Remove unnecessary creation of lists when iterating over digraphs for --buildpkgonly hasallzeros check. (trunk r12750) svn path=/main/branches/2.1.6/; revision=12998 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index f3209c34e..23a051d5b 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -14156,7 +14156,7 @@ def action_build(settings, trees, mtimedb, if "--buildpkgonly" in myopts: graph_copy = mydepgraph.digraph.clone() removed_nodes = set() - for node in list(graph_copy.order): + for node in graph_copy: if not isinstance(node, Package) or \ node.operation == "nomerge": removed_nodes.add(node) @@ -14170,7 +14170,7 @@ def action_build(settings, trees, mtimedb, if "--buildpkgonly" in myopts: graph_copy = mydepgraph.digraph.clone() removed_nodes = set() - for node in list(graph_copy.order): + for node in graph_copy: if not isinstance(node, Package) or \ node.operation == "nomerge": removed_nodes.add(node)