1 |
commit: 0cb2523bca051aa06e73169d647d2ad3278fa25f |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 22 00:44:37 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 22 00:44:37 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=0cb2523b |
7 |
|
8 |
search.py: use _aux_cache_keys more |
9 |
|
10 |
This helps to avoid triggering the environment.bz2 extraction in |
11 |
vardbapi.aux_get(). |
12 |
|
13 |
--- |
14 |
pym/_emerge/search.py | 2 +- |
15 |
1 files changed, 1 insertions(+), 1 deletions(-) |
16 |
|
17 |
diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py |
18 |
index acfcfd0..5abc8a0 100644 |
19 |
--- a/pym/_emerge/search.py |
20 |
+++ b/pym/_emerge/search.py |
21 |
@@ -151,7 +151,7 @@ class search(object): |
22 |
if not result or cpv == portage.best([cpv, result]): |
23 |
result = cpv |
24 |
else: |
25 |
- db_keys = Package.metadata_keys |
26 |
+ db_keys = list(db._aux_cache_keys) |
27 |
# break out of this loop with highest visible |
28 |
# match, checked in descending order |
29 |
for cpv in reversed(db.match(atom)): |