summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-26 11:38:06 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-26 11:38:06 +0000
commita95f5d8314ef899ae5455089673b4de8b50b08b9 (patch)
tree84e82c6f0e8ae7332b079a058e8560c2240c2e7e
parent83b4b8792f8d600ce7630fa6d917c02ac93c856e (diff)
downloadportage-a95f5d8314ef899ae5455089673b4de8b50b08b9.tar.gz
portage-a95f5d8314ef899ae5455089673b4de8b50b08b9.tar.bz2
portage-a95f5d8314ef899ae5455089673b4de8b50b08b9.zip
--buildpkgonly will not merge anything, so
it cancels all binary package options. svn path=/main/trunk/; revision=8683
-rw-r--r--pym/_emerge/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index bfb306634..0a4c0027c 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6943,6 +6943,13 @@ def emerge_main():
if ("getbinpkg" in settings.features):
myopts["--getbinpkg"] = True
+ if "--buildpkgonly" in myopts:
+ # --buildpkgonly will not merge anything, so
+ # it cancels all binary package options.
+ for opt in ("--getbinpkg", "--getbinpkgonly",
+ "--usepkg", "--usepkgonly"):
+ myopts.pop(opt, None)
+
if "--skipfirst" in myopts and "--resume" not in myopts:
myopts["--resume"] = True