From 08230d0af1faf7859e7dfa22f8f70bc97249cfd2 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 12 Oct 2007 10:11:01 +0000 Subject: [PATCH] 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 --- pym/portage/dbapi/bintree.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", -- 2.26.2