summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-26 02:43:49 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-26 02:43:49 +0000
commit07e1f307333b97d2c133211ce774f1f07573d845 (patch)
treefff6623a4e354c094154ba1ca8b1fbeaf1760c08
parent0edd3459439dd0cb4abfc537bfb89c634c2ebfd5 (diff)
downloadportage-07e1f307333b97d2c133211ce774f1f07573d845.tar.gz
portage-07e1f307333b97d2c133211ce774f1f07573d845.tar.bz2
portage-07e1f307333b97d2c133211ce774f1f07573d845.zip
Make _setitem do a deepcopy just in case.
svn path=/main/trunk/; revision=5394
-rw-r--r--pym/cache/volatile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/cache/volatile.py b/pym/cache/volatile.py
index 068a4b817..0a204b70f 100644
--- a/pym/cache/volatile.py
+++ b/pym/cache/volatile.py
@@ -17,9 +17,11 @@ class database(template.database):
super(database, self).__init__(*args, **config)
self._data = {}
self.iterkeys = self._data.iterkeys
- self._setitem = self._data.__setitem__
self._delitem = self._data.__delitem__
self.__contains__ = self._data.__contains__
+ def _setitem(self, name, values):
+ self._data[name] = copy.deepcopy(values)
+
def _getitem(self, cpv):
return copy.deepcopy(self._data[cpv])