From 7270ee7ebb0dccc83a073a04e73d66346d6e698d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Mar 2009 01:40:55 +0000 Subject: [PATCH] Remove unnecessary creation of lists when iterating over digraphs for --buildpkgonly hasallzeros check. svn path=/main/trunk/; revision=12750 --- 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 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) -- 2.26.2