From c21f9d1a1ccaa24d8c38a76f491f645e47aed14e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:56:37 +0000 Subject: [PATCH] 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. (trunk r15427) svn path=/main/branches/2.1.7/; revision=15649 --- RELEASE-NOTES | 3 ++- man/emerge.1 | 2 +- pym/_emerge/create_depgraph_params.py | 2 +- pym/_emerge/help.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 26c8b5142..8219b5f7e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -6,7 +6,8 @@ portage-2.1.8 * The new --rebuilt-binaries option will replace installed packages with binary packages that have been rebuilt. Rebuilds are detected by comparison of BUILD_TIME package metadata. This option is enabled automatically when using - binary packages (--usepkg or --getbinpkg) together with --update and --deep. + binary packages (--usepkgonly or --getbinpkgonly) together with --update and + --deep. portage-2.1.7 ================================== diff --git a/man/emerge.1 b/man/emerge.1 index 9a7526e45..82a2e0d62 100644 --- a/man/emerge.1 +++ b/man/emerge.1 @@ -475,7 +475,7 @@ Replace installed packages with binary packages that have been rebuilt. Rebuilds are detected by comparison of BUILD_TIME package metadata. This option is enabled automatically when using binary packages -(\fB\-\-usepkg\fR or \fB\-\-getbinpkg\fR) together with +(\fB\-\-usepkgonly\fR or \fB\-\-getbinpkgonly\fR) together with \fB\-\-update\fR and \fB\-\-deep\fR. .TP .BR "\-\-reinstall changed\-use" 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 diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index 57494be39..bfd77cec4 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -508,7 +508,7 @@ def help(myopts, havecolor=1): "been rebuilt. Rebuilds are detected by comparison of " + \ "BUILD_TIME package metadata. This option is enabled " + \ "automatically when using binary packages " + \ - "(--usepkg or --getbinpkg) together with " + \ + "(--usepkgonly or --getbinpkgonly) together with " + \ "--update and --deep." for line in wrap(desc, desc_width): print(desc_indent + line) -- 2.26.2