From a0c901632e9dfe6cbcdfca4f3a8182f5e0a75ad9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 13 Dec 2007 04:23:50 +0000 Subject: Bug #201848 - Mask ebuilds that do not define SLOT. svn path=/main/trunk/; revision=8894 --- pym/_emerge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pym/_emerge/__init__.py') diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 28c30d96a..74884ab0a 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -868,6 +868,8 @@ def visible(pkgsettings, cpv, metadata, built=False, installed=False): @rtype: Boolean @returns: True if the package is visible, False otherwise. """ + if not metadata["SLOT"]: + return False if built and not installed and \ metadata["CHOST"] != pkgsettings["CHOST"]: return False @@ -2204,6 +2206,8 @@ class depgraph(object): metadata["CHOST"]) missing_licenses = [] if metadata: + if not metadata["SLOT"]: + mreasons.append("invalid: SLOT is undefined") if not portage.eapi_is_supported(metadata["EAPI"]): have_eapi_mask = True try: -- cgit v1.2.3-1-g7c22