From: Zac Medico Date: Tue, 28 Dec 2010 17:07:40 +0000 (-0800) Subject: doebuild: validate more Package metadata keys X-Git-Tag: v2.2.0_alpha11~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dbef4305dedd0b428e788f020bc3c3f94ffee232;p=portage.git doebuild: validate more Package metadata keys --- diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index b2c0169e7..0aae519dc 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -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)))