Add a config.pkeywordsdict property for backward compatibility.
authorZac Medico <zmedico@gentoo.org>
Tue, 14 Sep 2010 09:14:48 +0000 (02:14 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 14 Sep 2010 09:14:48 +0000 (02:14 -0700)
pym/portage/package/ebuild/config.py

index f92dd86fb0bfc11bc16359a34e25d3257d6697b6..16fb02f7b3542ac5d43ad292ddf3cccdf1312027 100644 (file)
@@ -803,6 +803,13 @@ class config(object):
                                writemsg("!!! %s\n" % str(e),
                                        noiselevel=-1)
 
+       @property
+       def pkeywordsdict(self):
+               result = self._keywords_manager.pkeywordsdict.copy()
+               for k, v in result.items():
+                       result[k] = v.copy()
+               return result
+
        @property
        def pmaskdict(self):
                return self._mask_manager._pmaskdict.copy()