diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-29 12:38:51 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-29 12:38:51 -0700 |
commit | 0e3c7e33f3fe0ce593d6c40984db15f42fabd7f3 (patch) | |
tree | 227db187ae7702a9b6afd1dd85cbe6002c8fe0d0 | |
parent | b07808edb1bc7b7adb36fd8d21ea430d1769d2a7 (diff) | |
download | portage-0e3c7e33f3fe0ce593d6c40984db15f42fabd7f3.tar.gz portage-0e3c7e33f3fe0ce593d6c40984db15f42fabd7f3.tar.bz2 portage-0e3c7e33f3fe0ce593d6c40984db15f42fabd7f3.zip |
egencache: ensure correct porttrees
The GenCache class assumes that portdb.porttrees[0] is the desired
tree, so assert that it is true. The behavior should have already been
correct, since PORTDIR_OVERLAY was already set to an empty string when
necessary.
-rwxr-xr-x | bin/egencache | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/egencache b/bin/egencache index 01eadf053..22ce8ec33 100755 --- a/bin/egencache +++ b/bin/egencache @@ -864,6 +864,8 @@ def egencache_main(args): # Limit ebuilds to the specified repo. portdb.porttrees = [repo_path] + else: + portdb.porttrees = [portdb.porttree_root] ret = [os.EX_OK] |