1 |
commit: 0e3c7e33f3fe0ce593d6c40984db15f42fabd7f3 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 19:38:51 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 19:38:51 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=0e3c7e33 |
7 |
|
8 |
egencache: ensure correct porttrees |
9 |
|
10 |
The GenCache class assumes that portdb.porttrees[0] is the desired |
11 |
tree, so assert that it is true. The behavior should have already been |
12 |
correct, since PORTDIR_OVERLAY was already set to an empty string when |
13 |
necessary. |
14 |
|
15 |
--- |
16 |
bin/egencache | 2 ++ |
17 |
1 files changed, 2 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/bin/egencache b/bin/egencache |
20 |
index 01eadf0..22ce8ec 100755 |
21 |
--- a/bin/egencache |
22 |
+++ b/bin/egencache |
23 |
@@ -864,6 +864,8 @@ def egencache_main(args): |
24 |
|
25 |
# Limit ebuilds to the specified repo. |
26 |
portdb.porttrees = [repo_path] |
27 |
+ else: |
28 |
+ portdb.porttrees = [portdb.porttree_root] |
29 |
|
30 |
ret = [os.EX_OK] |