summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-13 01:53:04 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-13 01:53:04 +0000
commit072df810008debac01416dfec98c3ddc600aff63 (patch)
tree058032c41947b6c34aae7952ac373f394f28f2e9
parentb99b94c435eeada6b2a0d75bae37da3805554034 (diff)
downloadportage-072df810008debac01416dfec98c3ddc600aff63.tar.gz
portage-072df810008debac01416dfec98c3ddc600aff63.tar.bz2
portage-072df810008debac01416dfec98c3ddc600aff63.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). svn path=/main/trunk/; revision=9860
-rw-r--r--pym/_emerge/__init__.py10
1 files changed, 6 insertions, 4 deletions
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":