Pass a mutable config instance into get_masking_status(). Currently
authorZac Medico <zmedico@gentoo.org>
Fri, 30 May 2008 09:58:34 +0000 (09:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 30 May 2008 09:58:34 +0000 (09:58 -0000)
it doesn't matter for installed packages but it's safer to be
consistent to avoid accidental breakage in the future.
(trunk r10503)

svn path=/main/branches/2.1.2/; revision=10504

bin/emerge

index d4321c28211a4b951efaf63831a0c976a89a0ccc..ef970e4cf692de6a578be9a8cd97f528af7991f0 100755 (executable)
@@ -5220,7 +5220,7 @@ class depgraph(object):
                masked_packages = []
                for pkg in self._masked_installed:
                        root_config = pkg.root_config
-                       pkgsettings = root_config.settings
+                       pkgsettings = self.pkgsettings[pkg.root]
                        mreasons = get_masking_status(pkg, pkgsettings, root_config)
                        masked_packages.append((root_config, pkgsettings,
                                pkg.cpv, pkg.metadata, mreasons))