From e2e1316a18be8f06ec1583cc6b7508acab641aee Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:37:58 +0000 Subject: [PATCH] Remove unnecessary creation of lists when iterating over digraphs for --buildpkgonly hasallzeros check. (trunk r12750) svn path=/main/branches/2.1.6/; revision=12998 --- pym/_emerge/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.26.2