Allow --root-deps for ROOT=/, so people can do weird things like use it with
authorZac Medico <zmedico@gentoo.org>
Wed, 1 Apr 2009 04:49:47 +0000 (04:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 1 Apr 2009 04:49:47 +0000 (04:49 -0000)
-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

pym/_emerge/__init__.py

index 63fc92262b8f98343668cf0e17d99dd004120c96..ec160fd022586b74be3a77bd70856fce44ffc823 100644 (file)
@@ -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"],