From a95f5d8314ef899ae5455089673b4de8b50b08b9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 26 Nov 2007 11:38:06 +0000 Subject: --buildpkgonly will not merge anything, so it cancels all binary package options. svn path=/main/trunk/; revision=8683 --- pym/_emerge/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22