summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: