From 4ae5d2c33867348026f69f9f21418012d6967fac Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 27 Mar 2009 04:16:04 +0000 Subject: [PATCH] If a package is masked by EAPI then don't show any other masking reasons. (trunk r13174) svn path=/main/branches/2.1.6/; revision=13204 --- pym/_emerge/__init__.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index c9480d3dc..86667a792 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1422,9 +1422,15 @@ def get_mask_info(root_config, cpv, pkgsettings, if metadata is None: mreasons = ["corruption"] else: - pkg = Package(type_name=pkg_type, root_config=root_config, - cpv=cpv, built=built, installed=installed, metadata=metadata) - mreasons = get_masking_status(pkg, pkgsettings, root_config) + eapi = metadata['EAPI'] + if eapi[:1] == '-': + eapi = eapi[1:] + if not portage.eapi_is_supported(eapi): + mreasons = ['EAPI %s' % eapi] + else: + pkg = Package(type_name=pkg_type, root_config=root_config, + cpv=cpv, built=built, installed=installed, metadata=metadata) + mreasons = get_masking_status(pkg, pkgsettings, root_config) return metadata, mreasons def show_masked_packages(masked_packages): -- 2.26.2