For bug #151238, fix --with-bdeps logic so that it works correctly with --onlydeps.
authorZac Medico <zmedico@gentoo.org>
Sat, 14 Oct 2006 01:21:27 +0000 (01:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 14 Oct 2006 01:21:27 +0000 (01:21 -0000)
svn path=/main/trunk/; revision=4675

bin/emerge

index f399c661d12de32ddd77aed157447d864f204540..d605d5ccc2abd7bfc96e1f001393c6e9a266ecec 100755 (executable)
@@ -816,7 +816,9 @@ class depgraph:
                        if "--buildpkgonly" in self.myopts:
                                edepend["RDEPEND"] = ""
                                edepend["PDEPEND"] = ""
-               if self.myopts.get("--with-bdeps", "n") == "n" and \
+               if not (arg and "--onlydeps" in self.myopts and \
+                       mytype == "ebuild") and \
+                       self.myopts.get("--with-bdeps", "n") == "n" and \
                        (mytype == "binary" or mybigkey[3] == "nomerge"):
                        edepend["DEPEND"] = ""