Fix repo in 'masked installed' message.
authorZac Medico <zmedico@gentoo.org>
Tue, 12 Oct 2010 03:30:57 +0000 (20:30 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 12 Oct 2010 03:30:57 +0000 (20:30 -0700)
This code hardcoded 'installed' as the repo, which was both awkward
and confusing, in terms of ensuring correct code and meaninful
messages.

pym/_emerge/depgraph.py

index 2a8956deb2471a0f5d444ba47794121957902697..424c4b27ddc9ecb352b9cb28bff7cfb0d66415a6 100644 (file)
@@ -4942,7 +4942,7 @@ class depgraph(object):
                        pkgsettings = self._frozen_config.pkgsettings[pkg.root]
                        mreasons = get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled)
                        masked_packages.append((root_config, pkgsettings,
-                               pkg.cpv, "installed", pkg.metadata, mreasons))
+                               pkg.cpv, pkg.repo, pkg.metadata, mreasons))
                if masked_packages:
                        writemsg("\n" + colorize("BAD", "!!!") + \
                                " The following installed packages are masked:\n",