From: Zac Medico Date: Sun, 13 Apr 2008 01:56:35 +0000 (-0000) Subject: In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if --empty or X-Git-Tag: v2.1.5~184 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32f71ed2a587693627a572b5ada7ffd56b7f94b4;p=portage.git In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if --empty or --deep are enabled. The makes it possible to run `emerge -eB world` and have every single package rebuilt (without actually installing anything). (trunk r9860) svn path=/main/branches/2.1.2/; revision=9861 --- diff --git a/bin/emerge b/bin/emerge index 3420abc55..b5e98ec4d 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2144,10 +2144,12 @@ class depgraph(object): for k in depkeys: edepend[k] = metadata[k] - if mytype == "ebuild": - if "--buildpkgonly" in self.myopts: - edepend["RDEPEND"] = "" - edepend["PDEPEND"] = "" + if not pkg.built and \ + "--buildpkgonly" in self.myopts and \ + "deep" not in self.myparams and \ + "empty" not in self.myparams: + edepend["RDEPEND"] = "" + edepend["PDEPEND"] = "" bdeps_satisfied = False if mytype in ("installed", "binary"): if self.myopts.get("--with-bdeps", "n") == "y":