From: Zac Medico Date: Sat, 17 Nov 2007 21:54:32 +0000 (-0000) Subject: Fix --usepkgonly code in depgraph.select_files() so that it X-Git-Tag: v2.2_pre1~383 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca3b96db24f9015e6ca7091b4708254f229f6775;p=portage.git 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 --- 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