From 32f71ed2a587693627a572b5ada7ffd56b7f94b4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Apr 2008 01:56:35 +0000 Subject: 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 --- bin/emerge | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin/emerge') 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": -- cgit v1.2.3-1-g7c22