From 993030fa80fd1dc415d9cab5fb9c05de05690818 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 9 Jun 2011 06:03:30 -0700 Subject: [PATCH] show_masked_packages: EAPI metadata safety When masked by EAPI, metadata is mostly useless since it doesn't contain essential things like SLOT. --- pym/_emerge/depgraph.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.26.2