Make depgraph._add_dep() ignore fewer dependencies when not in --deep mode, by
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:22:25 +0000 (03:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:22:25 +0000 (03:22 -0000)
making it so that it will always account for dependencies on packages that are
already installed. (trunk r12546)

svn path=/main/branches/2.1.6/; revision=12832

pym/_emerge/__init__.py

index 0fabdbfebb3e99f53eebdcf3530f2969f803f1e7..ab035b461380144607394cffdbe2c9afd7cc0ff1 100644 (file)
@@ -4816,6 +4816,7 @@ class depgraph(object):
                # discarded dependencies reduce the amount of information
                # available for optimization of merge order.
                if dep.priority.satisfied and \
+                       not dep_pkg.installed and \
                        not (existing_node or empty or deep or update):
                        myarg = None
                        if dep.root == self.target_root: