diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-04-04 00:44:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-04-04 00:44:08 +0000 |
commit | d07d0ada49e0c42ec3cc0cf2e2eb3b830d9c1f49 (patch) | |
tree | 127b8d3c7f0ffe1be5230f285dabf9f4562ec3e6 | |
parent | b4cb2121cfff04d13d0f143d2ca6804e8f630c56 (diff) | |
download | portage-d07d0ada49e0c42ec3cc0cf2e2eb3b830d9c1f49.tar.gz portage-d07d0ada49e0c42ec3cc0cf2e2eb3b830d9c1f49.tar.bz2 portage-d07d0ada49e0c42ec3cc0cf2e2eb3b830d9c1f49.zip |
Decrease priority on --onlydpes dependencies so that
--buildpkgonly hasallzeros() works correctly.
svn path=/main/trunk/; revision=9697
-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: |