From b6f3ad470ac1385adbaf45498c94e00cc8e7275a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 06:54:59 +0000 Subject: [PATCH] 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 for the suggestion. (trunk r13271) svn path=/main/branches/2.1.6/; revision=13450 --- pym/_emerge/__init__.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index c8ac9f8dd..187a117b0 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -5259,14 +5259,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"], -- 2.26.2