diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-02 14:33:48 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-02 14:33:48 -0700 |
commit | 1a5b8fb93bdd150b3e6525c1706e1ba0e34e15d9 (patch) | |
tree | 379633950e881b87f28fa00c3826140e69e31d08 /pym/portage | |
parent | a8cc1d73d3a46a5ee112b49042062e28cf9cb079 (diff) | |
download | portage-1a5b8fb93bdd150b3e6525c1706e1ba0e34e15d9.tar.gz portage-1a5b8fb93bdd150b3e6525c1706e1ba0e34e15d9.tar.bz2 portage-1a5b8fb93bdd150b3e6525c1706e1ba0e34e15d9.zip |
Add backward compatible config.pmaskdict and punmaskdict properties
that return copies of the corresponding MaskManager attributes. This
is safe since MaskManager now stores the values in these dicts as
immutable tuples.
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/package/ebuild/config.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 22edda68e..2f0958e2d 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -853,6 +853,14 @@ class config(object): writemsg("!!! %s\n" % str(e), noiselevel=-1) + @property + def pmaskdict(self): + return self._mask_manager._pmaskdict.copy() + + @property + def punmaskdict(self): + return self._mask_manager._punmaskdict.copy() + def expandLicenseTokens(self, tokens): """ Take a token from ACCEPT_LICENSE or package.license and expand it if it's a group token (indicated by @) or just return it if it's not a |