summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-02 14:32:12 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-02 14:32:12 -0700
commita8cc1d73d3a46a5ee112b49042062e28cf9cb079 (patch)
treed850f75f8665034a2b089fcdf202e53fe14d81d0
parent8c2293fcda629aa58d582dc841a1f5d74a248316 (diff)
downloadportage-a8cc1d73d3a46a5ee112b49042062e28cf9cb079.tar.gz
portage-a8cc1d73d3a46a5ee112b49042062e28cf9cb079.tar.bz2
portage-a8cc1d73d3a46a5ee112b49042062e28cf9cb079.zip
Make MaskManager use tuples for values inside _pmaskdict and
_punmaskdict.
-rw-r--r--pym/portage/package/ebuild/_config/MaskManager.py4
1 files changed, 4 insertions, 0 deletions
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