diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-06-09 06:03:30 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-06-09 06:13:55 -0700 |
commit | 993030fa80fd1dc415d9cab5fb9c05de05690818 (patch) | |
tree | fe3e080e61b34d73ee1accb7ee2a6bffa66a1307 | |
parent | a2e391558915c29a5d1771bed2f39173398b289d (diff) | |
download | portage-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.py | 3 |
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: |