diff options
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |