For consistency, respect the use_binaries flag inside _expand_new_virtuals().
authorZac Medico <zmedico@gentoo.org>
Tue, 16 Jan 2007 20:08:13 +0000 (20:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 16 Jan 2007 20:08:13 +0000 (20:08 -0000)
svn path=/main/trunk/; revision=5674

pym/portage.py

index 75bd6382801f15014c59d3c928e9ed22e7908bd5..a45f62cc3665192baa09884d54a27f3cbf9b814b 100644 (file)
@@ -3889,6 +3889,8 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
        def compare_pkgs(a, b):
                return pkgcmp(b[1], a[1])
        portdb = trees[myroot]["porttree"].dbapi
+       if kwargs["use_binaries"]:
+               portdb = trees[myroot]["bintree"].dbapi
        myvirtuals = mysettings.getvirtuals()
        for x in mysplit:
                if x == "||":