In depgraph.select_dep(), check for existing nodes in
authorZac Medico <zmedico@gentoo.org>
Thu, 11 Oct 2007 14:22:29 +0000 (14:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 11 Oct 2007 14:22:29 +0000 (14:22 -0000)
installed packages when necessary.

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

pym/emerge/__init__.py

index 63146e93a0120743d1b000a0843bc09cfe472745..596320a92aca467203c51bd5f90f03e74decf929 100644 (file)
@@ -1944,7 +1944,8 @@ class depgraph(object):
                                        for db, pkg_type, built, installed, db_keys in dbs:
                                                if existing_node:
                                                        break
-                                               if installed and (matched_packages or empty):
+                                               if installed and not find_existing_node and \
+                                                       (matched_packages or empty):
                                                        # We only need to select an installed package here
                                                        # if there is no other choice.
                                                        continue