Decrease priority on --onlydpes dependencies so that
authorZac Medico <zmedico@gentoo.org>
Fri, 4 Apr 2008 00:44:08 +0000 (00:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 4 Apr 2008 00:44:08 +0000 (00:44 -0000)
--buildpkgonly hasallzeros() works correctly.

svn path=/main/trunk/; revision=9697

pym/_emerge/__init__.py

index 33a4aed25c81bc9f93350788a65e9b0356e0d4da..531a08d0f2b6610ad862417601229a6a0ee87860 100644 (file)
@@ -1927,6 +1927,10 @@ class depgraph(object):
                strict = mytype != "installed"
                try:
                        for dep_root, dep_string, dep_priority in deps:
+                               if pkg.onlydeps:
+                                       # Decrease priority so that --buildpkgonly
+                                       # hasallzeros() works correctly.
+                                       dep_priority = DepPriority()
                                if not dep_string:
                                        continue
                                if debug: