From: Zac Medico Date: Thu, 13 Dec 2007 04:23:50 +0000 (-0000) Subject: Bug #201848 - Mask ebuilds that do not define SLOT. X-Git-Tag: v2.2_pre1~194 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0c901632e9dfe6cbcdfca4f3a8182f5e0a75ad9;p=portage.git Bug #201848 - Mask ebuilds that do not define SLOT. svn path=/main/trunk/; revision=8894 --- 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: