diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-17 21:54:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-17 21:54:32 +0000 |
commit | ca3b96db24f9015e6ca7091b4708254f229f6775 (patch) | |
tree | 802ff6a284abeec7107027698cc6f72bb7ead0b9 | |
parent | 076a1a6a4dcc331afd11ac2687b8430ffa4eedaa (diff) | |
download | portage-ca3b96db24f9015e6ca7091b4708254f229f6775.tar.gz portage-ca3b96db24f9015e6ca7091b4708254f229f6775.tar.bz2 portage-ca3b96db24f9015e6ca7091b4708254f229f6775.zip |
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
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |