commit: f63db9a4598b5a49a989b9176a5c86fa4a70c3c2
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Mon Dec 15 16:24:01 2014 +0000
Commit: Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> org>
CommitDate: Mon Dec 15 16:24:01 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f63db9a4
portage.dbapi.bintree.binarytree: Delete main-repository-reliant
microoptimization in index of binary packages.
This microoptimization cannot work when no main repository exists.
1 call to deprecated portage.repository.config.RepoConfigLoader.mainRepo()
function
has been deleted.
---
pym/portage/dbapi/bintree.py | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index b56c8c1..d7c7f95 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -360,16 +360,6 @@ class binarytree(object):
"repository" : "",
}
- # It is especially important to populate keys like
- # "repository" that save space when entries can
- # inherit them from the header. If an existing
- # pkgindex header already defines these keys, then
- # they will appropriately override our defaults.
- main_repo = self.settings.repositories.mainRepo()
- if main_repo is not None and not
main_repo.missing_repo_name:
-
self._pkgindex_default_header_data["repository"] = \
- main_repo.name
-
self._pkgindex_translated_keys = (
("DESCRIPTION" , "DESC"),
("repository" , "REPO"),