summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-09 06:03:30 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-09 06:13:55 -0700
commit993030fa80fd1dc415d9cab5fb9c05de05690818 (patch)
treefe3e080e61b34d73ee1accb7ee2a6bffa66a1307
parenta2e391558915c29a5d1771bed2f39173398b289d (diff)
downloadportage-993030fa80fd1dc415d9cab5fb9c05de05690818.tar.gz
portage-993030fa80fd1dc415d9cab5fb9c05de05690818.tar.bz2
portage-993030fa80fd1dc415d9cab5fb9c05de05690818.zip
show_masked_packages: EAPI metadata safety
When masked by EAPI, metadata is mostly useless since it doesn't contain essential things like SLOT.
-rw-r--r--pym/_emerge/depgraph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 413e06719..a00837f39 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -6879,6 +6879,9 @@ def show_masked_packages(masked_packages):
not portage.eapi_is_supported(metadata["EAPI"])
if eapi_masked:
have_eapi_mask = True
+ # When masked by EAPI, metadata is mostly useless since
+ # it doesn't contain essential things like SLOT.
+ metadata = None
comment, filename = None, None
if not eapi_masked and \
"package.mask" in mreasons: