Check for updates masked by license for any installed packages that have been
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Nov 2009 04:04:54 +0000 (04:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Nov 2009 04:04:54 +0000 (04:04 -0000)
added to the graph (regardless of --deep or --complete-graph).. (trunk r14845)

svn path=/main/branches/2.1.7/; revision=14861

pym/_emerge/depgraph.py

index 864afc5a6b466c739a532a6f9408aaa057d86f02..3efc3190e4f7772203ba8bf8248b30f4d3df5ab0 100644 (file)
@@ -2810,11 +2810,12 @@ class depgraph(object):
                                                        self._dynamic_config._masked_installed.add(pkg)
                                                elif pkgsettings._getMissingLicenses(pkg.cpv, pkg.metadata):
                                                        self._dynamic_config._masked_installed.add(pkg)
-                                               elif complete or deep:
+                                               elif pkg_in_graph or complete or deep:
                                                        # Check for upgrades in the same slot that are
                                                        # masked due to a LICENSE change in a newer
                                                        # version that is not masked for any other reason.
-                                                       # Only do this for complete or deep graphs since
+                                                       # Only do this for packages that are already in
+                                                       # the graph, or complete or deep graphs, since
                                                        # otherwise it is likely a waste of time.
                                                        got_mask = False
                                                        for db, pkg_type, built, installed, db_keys in dbs: