doebuild: validate more Package metadata keys
authorZac Medico <zmedico@gentoo.org>
Tue, 28 Dec 2010 17:07:40 +0000 (09:07 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 28 Dec 2010 17:07:40 +0000 (09:07 -0800)
pym/portage/package/ebuild/doebuild.py

index b2c0169e7f2f4b85cbe3f1786730c2fe28ab9117..0aae519dcb117cb5eebf4e2edb2f5017cbc71d23 100644 (file)
@@ -1006,10 +1006,9 @@ def _validate_deps(mysettings, myroot, mydo, mydbapi):
 
        invalid_dep_exempt_phases = \
                set(["clean", "cleanrm", "help", "prerm", "postrm"])
-       dep_keys = ["DEPEND", "RDEPEND", "PDEPEND"]
-       misc_keys = ["LICENSE", "PROPERTIES", "PROVIDE", "RESTRICT", "SRC_URI"]
-       other_keys = ["EAPI", "IUSE", "SLOT"]
-       all_keys = dep_keys + misc_keys + other_keys
+       all_keys = set(Package.metadata_keys)
+       all_keys.add("SRC_URI")
+       all_keys = tuple(all_keys)
        metadata = dict(zip(all_keys,
                mydbapi.aux_get(mysettings.mycpv, all_keys)))