From: Zac Medico Date: Thu, 2 Sep 2010 21:32:12 +0000 (-0700) Subject: Make MaskManager use tuples for values inside _pmaskdict and X-Git-Tag: v2.2_rc74~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a8cc1d73d3a46a5ee112b49042062e28cf9cb079;p=portage.git Make MaskManager use tuples for values inside _pmaskdict and _punmaskdict. --- diff --git a/pym/portage/package/ebuild/_config/MaskManager.py b/pym/portage/package/ebuild/_config/MaskManager.py index 7a5fc5e17..26252d04f 100644 --- a/pym/portage/package/ebuild/_config/MaskManager.py +++ b/pym/portage/package/ebuild/_config/MaskManager.py @@ -39,6 +39,10 @@ class MaskManager(object): for x in pkgunmasklines: self._punmaskdict.setdefault(x.cp, []).append(x) + for d in (self._pmaskdict, self._punmaskdict): + for k, v in d.items(): + d[k] = tuple(v) + def getMaskAtom(self, cpv, slot): """ Take a package and return a matching package.mask atom, or None if no