From: Zac Medico Date: Thu, 5 Mar 2009 01:40:55 +0000 (-0000) Subject: Remove unnecessary creation of lists when iterating over digraphs for X-Git-Tag: v2.2_rc24~65 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7270ee7ebb0dccc83a073a04e73d66346d6e698d;p=portage.git Remove unnecessary creation of lists when iterating over digraphs for --buildpkgonly hasallzeros check. svn path=/main/trunk/; revision=12750 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 4c9225746..8abe080f9 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -14510,7 +14510,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) @@ -14524,7 +14524,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)