Fix broken --onlydeps recursion logic.
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 20:29:07 +0000 (20:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 20:29:07 +0000 (20:29 -0000)
svn path=/main/branches/2.1.2/; revision=9604

bin/emerge

index cfa84580d15fe8f756f179fabb84515c29fa4786..47a79acb2a15b22c6ea3997979ca06d841f3ccf6 100755 (executable)
@@ -1812,7 +1812,9 @@ class depgraph:
                    emerge --deep <pkgspec>; we need to recursively check dependencies of pkgspec
                    If we are in --nodeps (no recursion) mode, we obviously only check 1 level of dependencies.
                """
-               if "deep" not in self.myparams and not merging and \
+               if arg and pkg.onlydeps:
+                       pass
+               elif "deep" not in self.myparams and not merging and \
                        not ("--update" in self.myopts and arg and merging):
                        return 1
                elif "recurse" not in self.myparams: