I have some rotten binpkgs floating around, they don't have a EPREFIX
authorFabian Groffen <grobian@gentoo.org>
Fri, 12 Oct 2007 11:04:52 +0000 (11:04 -0000)
committerFabian Groffen <grobian@gentoo.org>
Fri, 12 Oct 2007 11:04:52 +0000 (11:04 -0000)
key, avoid Python KeyErroring out on them.

svn path=/main/branches/prefix/; revision=8082

pym/emerge/__init__.py

index 50cfaaec539462b4433800ecf816fa65d55d1e05..12b4d89d9bb7cbc3bf5a5f25133e6c649a72e2a1 100644 (file)
@@ -902,7 +902,8 @@ def visible(pkgsettings, cpv, metadata, built=False, installed=False):
                metadata["CHOST"] != pkgsettings["CHOST"]:
                return False
        if built:
-               if not metadata["EPREFIX"]:
+               # we can have an old binary which has no EPREFIX information
+               if "EPREFIX" not in metadata or not metadata["EPREFIX"]:
                        return False
                if len(metadata["EPREFIX"].strip()) < len(pkgsettings["EPREFIX"]):
                        return False