diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-11-07 07:27:23 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-11-07 07:27:23 -0800 |
commit | a0961708ced50c90497811058eda6f4513d2986d (patch) | |
tree | cd361391a487292dbcd2c7f31d314f7bc698ad66 /pym/portage/dbapi/bintree.py | |
parent | c17d8dabe4c64fc4ed87ac9a0637f8ccc9341823 (diff) | |
download | portage-a0961708ced50c90497811058eda6f4513d2986d.tar.gz portage-a0961708ced50c90497811058eda6f4513d2986d.tar.bz2 portage-a0961708ced50c90497811058eda6f4513d2986d.zip |
REQUIRED_USE: don't save in built packages
It should be safe to assume that REQUIRED_USE is satisfied if the
package is built, so it's a waste to save it. Also, fix code which
assumes that built Package instances have a REQUIRED_USE key in their
metadata.
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r-- | pym/portage/dbapi/bintree.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 4c2492990..31ba364a4 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -68,7 +68,7 @@ class bindbapi(fakedbapi): ["BUILD_TIME", "CHOST", "DEPEND", "EAPI", "IUSE", "KEYWORDS", "LICENSE", "PDEPEND", "PROPERTIES", "PROVIDE", "RDEPEND", "repository", "RESTRICT", "SLOT", "USE", "DEFINED_PHASES", - "REQUIRED_USE"]) + ]) self._aux_cache_slot_dict = slot_dict_class(self._aux_cache_keys) self._aux_cache = {} @@ -290,7 +290,7 @@ class binarytree(object): ["BUILD_TIME", "CHOST", "DEPEND", "DESCRIPTION", "EAPI", "IUSE", "KEYWORDS", "LICENSE", "PDEPEND", "PROPERTIES", "PROVIDE", "RDEPEND", "repository", "SLOT", "USE", "DEFINED_PHASES", - "REQUIRED_USE", "BASE_URI"] + "BASE_URI"] self._pkgindex_aux_keys = list(self._pkgindex_aux_keys) self._pkgindex_use_evaluated_keys = \ ("LICENSE", "RDEPEND", "DEPEND", @@ -316,7 +316,6 @@ class binarytree(object): "SLOT" : "0", "USE" : "", "DEFINED_PHASES" : "", - "REQUIRED_USE" : "" } self._pkgindex_inherited_keys = ["CHOST", "repository"] |