Fix --usepkgonly code in depgraph.select_files() so that it
authorZac Medico <zmedico@gentoo.org>
Sat, 17 Nov 2007 21:54:32 +0000 (21:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 17 Nov 2007 21:54:32 +0000 (21:54 -0000)
only operates on the Package type that it expects.

svn path=/main/trunk/; revision=8519

pym/_emerge/__init__.py

index 8df77b5587bb3bd2a2f880a1eabcf64100e0f673..5ad6714afe8135a950076b446e9a18a720a8d050 100644 (file)
@@ -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