summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-13 04:23:50 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-13 04:23:50 +0000
commita0c901632e9dfe6cbcdfca4f3a8182f5e0a75ad9 (patch)
tree77e3411d4352d3c5a58505d13e09478d63c855ad
parent4fc8809c8e557aa2cae894884ae558354516b9a9 (diff)
downloadportage-a0c901632e9dfe6cbcdfca4f3a8182f5e0a75ad9.tar.gz
portage-a0c901632e9dfe6cbcdfca4f3a8182f5e0a75ad9.tar.bz2
portage-a0c901632e9dfe6cbcdfca4f3a8182f5e0a75ad9.zip
Bug #201848 - Mask ebuilds that do not define SLOT.
svn path=/main/trunk/; revision=8894
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 4 insertions, 0 deletions
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: