Make portdbapi.visible() mask ebuilds that do not define SLOT.
authorZac Medico <zmedico@gentoo.org>
Thu, 13 Dec 2007 06:28:23 +0000 (06:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 13 Dec 2007 06:28:23 +0000 (06:28 -0000)
(branches/2.1.2 r8900)

svn path=/main/trunk/; revision=8901

pym/portage/dbapi/porttree.py

index db2b35aff6aa7af8a60af8d95e9ff37d36254ad0..0ed55fba858fe55474f713fbf821b91ee2d1c6eb 100644 (file)
@@ -701,6 +701,8 @@ class portdbapi(dbapi):
                        except KeyError:
                                # masked by corruption
                                continue
+                       if not metadata["SLOT"]:
+                               continue
                        if getMaskAtom(cpv, metadata):
                                continue
                        if getProfileMaskAtom(cpv, metadata):