summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-29 12:38:51 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-29 12:38:51 -0700
commit0e3c7e33f3fe0ce593d6c40984db15f42fabd7f3 (patch)
tree227db187ae7702a9b6afd1dd85cbe6002c8fe0d0 /bin
parentb07808edb1bc7b7adb36fd8d21ea430d1769d2a7 (diff)
downloadportage-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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/egencache2
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]