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

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

pym/_emerge/__init__.py

index c315af65d61696698114acd5a4a7cb1a99242487..dd80c16d27a63172f0ef679219cd00285e5b9b3e 100644 (file)
@@ -5144,7 +5144,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))