Add code to change display of masked packages for equery list
authorfuzzyray <fuzzyray@gentoo.org>
Thu, 5 Jul 2007 19:16:02 +0000 (19:16 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Thu, 5 Jul 2007 19:16:02 +0000 (19:16 -0000)
svn path=/; revision=410

trunk/src/equery/equery

index 238f19226c5536c8908fe078a245fd78c6fefb7f..f73f7248ee7f4da277bf3262344e7d949f9ab465 100755 (executable)
@@ -1412,6 +1412,9 @@ class CmdListPackages(Command):
        def _get_mask_status(self, pkg):
                pkgmask = 0
                if pkg.is_masked():
+               # Uncomment to only have package masked files show an 'M'
+               # maskreasons = portage.getmaskingstatus(pkg.get_cpv())
+               # if "package.mask" in maskreasons:
                        pkgmask = pkgmask + 3
                keywords = pkg.get_env_var("KEYWORDS").split()
                if "~" + gentoolkit.settings["ARCH"] in keywords: