From: Zac Medico Date: Fri, 4 Apr 2008 00:44:08 +0000 (-0000) Subject: Decrease priority on --onlydpes dependencies so that X-Git-Tag: v2.2_pre6~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d07d0ada49e0c42ec3cc0cf2e2eb3b830d9c1f49;p=portage.git Decrease priority on --onlydpes dependencies so that --buildpkgonly hasallzeros() works correctly. svn path=/main/trunk/; revision=9697 --- 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: