Bug #201848 - Mask ebuilds that do not define SLOT.
authorZac Medico <zmedico@gentoo.org>
Thu, 13 Dec 2007 04:23:50 +0000 (04:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 13 Dec 2007 04:23:50 +0000 (04:23 -0000)
svn path=/main/trunk/; revision=8894

pym/_emerge/__init__.py

index 28c30d96aa5b74dc232122f62d7c35c78035faf9..74884ab0acfa6889ef959a0d4a717bda936bfb26 100644 (file)
@@ -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: