From: Fabian Groffen Date: Fri, 12 Oct 2007 10:11:01 +0000 (-0000) Subject: Optimise some more: take the EAPI from portage.const, as most packages X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=08230d0af1faf7859e7dfa22f8f70bc97249cfd2;p=portage.git Optimise some more: take the EAPI from portage.const, as most packages will probably be that EAPI (at least that is what we would like). At least in Prefix there are no packages with EAPI != portage.const.EAPI svn path=/main/branches/prefix/; revision=8080 --- diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 23b0832ac..91259c0a2 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -9,6 +9,7 @@ from portage.output import green from portage.util import normalize_path, writemsg, writemsg_stdout from portage.versions import best, catpkgsplit, catsplit from portage.update import update_dbentries +from portage.const import EAPI from portage import dep_expand, listdir, _movefile @@ -151,9 +152,9 @@ class binarytree(object): self._pkgindex_aux_keys = list(self._pkgindex_aux_keys) self._pkgindex_header_keys = set(["ACCEPT_KEYWORDS", "CBUILD", "CHOST", "CONFIG_PROTECT", "CONFIG_PROTECT_MASK", "FEATURES", - "GENTOO_MIRRORS", "INSTALL_MASK", "SYNC", "USE", "EPREFIX"]) + "GENTOO_MIRRORS", "INSTALL_MASK", "SYNC", "USE", "EAPI", "EPREFIX"]) self._pkgindex_default_pkg_data = { - "EAPI" : "0", + "EAPI" : EAPI, "IUSE" : "", "PROVIDE" : "", "SLOT" : "0",