summaryrefslogtreecommitdiffstats
path: root/bin/emerge
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-13 01:56:35 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-13 01:56:35 +0000
commit32f71ed2a587693627a572b5ada7ffd56b7f94b4 (patch)
tree3a1e0c811ba355ee0d0763f6401e8fd091291247 /bin/emerge
parenta359e4cc0bf911f055aec889a7e2e2ead4bc8bc9 (diff)
downloadportage-32f71ed2a587693627a572b5ada7ffd56b7f94b4.tar.gz
portage-32f71ed2a587693627a572b5ada7ffd56b7f94b4.tar.bz2
portage-32f71ed2a587693627a572b5ada7ffd56b7f94b4.zip
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
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge10
1 files changed, 6 insertions, 4 deletions
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":