summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/create_depgraph_params.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-22 10:22:38 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-22 10:22:38 +0000
commit95ba162c8d142582166f31d51d1a489b6b8b6994 (patch)
treeaf4618823566e7188936451aa3941fb8227cf6d3 /pym/_emerge/create_depgraph_params.py
parentca890224e48ded2f0a2a17d13aff8f536bc2f18a (diff)
downloadportage-95ba162c8d142582166f31d51d1a489b6b8b6994.tar.gz
portage-95ba162c8d142582166f31d51d1a489b6b8b6994.tar.bz2
portage-95ba162c8d142582166f31d51d1a489b6b8b6994.zip
Enable --rebuilt-binaries automatically only when in --usepkgonly or
--getbinpkgonly mode, since --usepkgonly behaves better in cases when the portage tree is not exactly the same revision that was used to build the packages. svn path=/main/trunk/; revision=15427
Diffstat (limited to 'pym/_emerge/create_depgraph_params.py')
-rw-r--r--pym/_emerge/create_depgraph_params.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/create_depgraph_params.py b/pym/_emerge/create_depgraph_params.py
index 37bda4922..f8351831e 100644
--- a/pym/_emerge/create_depgraph_params.py
+++ b/pym/_emerge/create_depgraph_params.py
@@ -42,7 +42,7 @@ def create_depgraph_params(myopts, myaction):
rebuilt_binaries = myopts.get('--rebuilt-binaries')
if rebuilt_binaries is True or \
rebuilt_binaries != 'n' and \
- '--usepkg' in myopts and \
+ '--usepkgonly' in myopts and \
myopts.get('--deep') is True and \
'--update' in myopts:
myparams['rebuilt_binaries'] = True