Make depgraph._add_dep() ignore fewer dependencies when not in --deep mode, by
authorZac Medico <zmedico@gentoo.org>
Thu, 22 Jan 2009 02:56:00 +0000 (02:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 22 Jan 2009 02:56:00 +0000 (02:56 -0000)
making it so that it will always account for dependencies on packages that are
already installed.

svn path=/main/trunk/; revision=12546

pym/_emerge/__init__.py

index 4292865fbedd51204b94fd3f13262e3cc051bb81..1e875bbaab5f5d7d53a08cb93c6ef1d9296a9ebb 100644 (file)
@@ -4832,6 +4832,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: