From ca3b96db24f9015e6ca7091b4708254f229f6775 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 17 Nov 2007 21:54:32 +0000 Subject: [PATCH] Fix --usepkgonly code in depgraph.select_files() so that it only operates on the Package type that it expects. svn path=/main/trunk/; revision=8519 --- pym/_emerge/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 8df77b558..5ad6714af 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1986,6 +1986,8 @@ class depgraph(object): missing=0 if "--usepkgonly" in self.myopts: for xs in self.digraph.all_nodes(): + if not isinstance(xs, Package): + continue if len(xs) >= 4 and xs[0] != "binary" and xs[3] == "merge": if missing == 0: print -- 2.26.2