From: Zac Medico Date: Sun, 13 Apr 2008 01:53:04 +0000 (-0000) Subject: In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if --empty or X-Git-Tag: v2.2_pre6~177 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=072df810008debac01416dfec98c3ddc600aff63;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). svn path=/main/trunk/; revision=9860 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index a7d397e9b..74bdecac5 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2005,10 +2005,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":