From d07d0ada49e0c42ec3cc0cf2e2eb3b830d9c1f49 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 4 Apr 2008 00:44:08 +0000 Subject: [PATCH] Decrease priority on --onlydpes dependencies so that --buildpkgonly hasallzeros() works correctly. svn path=/main/trunk/; revision=9697 --- pym/_emerge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 33a4aed25..531a08d0f 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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: -- 2.26.2