summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-01 04:49:47 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-01 04:49:47 +0000
commita8185163e5bab0de484e920f39e93ec6253b9a2b (patch)
tree46d6ea1a3a5123090bc600202275cc577ee462f1
parent0ae6cc45de9b7415565cbd5aa9560bb49702176a (diff)
downloadportage-a8185163e5bab0de484e920f39e93ec6253b9a2b.tar.gz
portage-a8185163e5bab0de484e920f39e93ec6253b9a2b.tar.bz2
portage-a8185163e5bab0de484e920f39e93ec6253b9a2b.zip
Allow --root-deps for ROOT=/, so people can do weird things like use it with
-e to remerge deep runtime deps without pulling in build-time deps. It's not something we really want to advertise, but it's good to leave the option open in case it happens to be useful. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=13271
-rw-r--r--pym/_emerge/__init__.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 63fc92262..ec160fd02 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -5275,14 +5275,12 @@ class depgraph(object):
edepend["DEPEND"] = ""
bdeps_root = "/"
- if self.target_root != "/":
- root_deps = self.myopts.get("--root-deps")
- if root_deps is not None:
- if root_deps is True:
- bdeps_root = myroot
- elif root_deps == "rdeps":
- bdeps_root = "/"
- edepend["DEPEND"] = ""
+ root_deps = self.myopts.get("--root-deps")
+ if root_deps is not None:
+ if root_deps is True:
+ bdeps_root = myroot
+ elif root_deps == "rdeps":
+ edepend["DEPEND"] = ""
deps = (
(bdeps_root, edepend["DEPEND"],