summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-02 21:14:41 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-02 21:14:41 -0700
commit7ee0946f066468ba5dfebbcbc41e6a10e3870edf (patch)
tree8a94bb49aab89974c5b5e06221f768a5e224dcf1 /pym
parentBug #330937: Handle IOError raised by array.fromfile(). (diff)
downloadportage-multirepo-7ee0946f066468ba5dfebbcbc41e6a10e3870edf.tar.gz
portage-multirepo-7ee0946f066468ba5dfebbcbc41e6a10e3870edf.tar.bz2
portage-multirepo-7ee0946f066468ba5dfebbcbc41e6a10e3870edf.zip
Only populate the binarytree for actions that need it (search or
install actions).
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 16d9897d..b2bb362f 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -1336,7 +1336,8 @@ def emerge_main():
# Freeze the portdbapi for performance (memoize all xmatch results).
mydb.freeze()
- if "--usepkg" in myopts:
+ if myaction in ('search', None) and \
+ "--usepkg" in myopts:
# Populate the bintree with current --getbinpkg setting.
# This needs to happen before expand_set_arguments(), in case
# any sets use the bintree.