--buildpkgonly will not merge anything, so
authorZac Medico <zmedico@gentoo.org>
Mon, 26 Nov 2007 11:38:06 +0000 (11:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 26 Nov 2007 11:38:06 +0000 (11:38 -0000)
it cancels all binary package options.

svn path=/main/trunk/; revision=8683

pym/_emerge/__init__.py

index bfb306634345332b884cdd93e15e71f7039dbee6..0a4c0027c48404ddc8cab58f743db91b66e99b52 100644 (file)
@@ -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