diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-07-06 19:58:39 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-07-06 19:58:39 +0000 |
commit | b1f2d133e14f3b476a58a1c2d10e033301f995bc (patch) | |
tree | fc7d68a51c700f228d5e150836ae5e0eac19481b | |
parent | 32760f0803256ce12568689e7d577fbf66eecfed (diff) | |
download | portage-b1f2d133e14f3b476a58a1c2d10e033301f995bc.tar.gz portage-b1f2d133e14f3b476a58a1c2d10e033301f995bc.tar.bz2 portage-b1f2d133e14f3b476a58a1c2d10e033301f995bc.zip |
Use copy.deepcopy() to ensure that state comparison works properly.
svn path=/main/trunk/; revision=3808
-rw-r--r-- | pym/portage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index 6061695fa..a132da574 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7127,7 +7127,7 @@ class MtimeDB(dict): writemsg("Deleting invalid mtimedb key: %s\n" % str(k)) del d[k] self.update(d) - self._clean_data = d + self._clean_data = copy.deepcopy(d) def commit(self): d = {} @@ -7135,7 +7135,7 @@ class MtimeDB(dict): # Only commit if the internal state has changed. if d != self._clean_data: commit_mtimedb(mydict=d, filename=self.filename) - self._clean_data = d + self._clean_data = copy.deepcopy(d) def create_trees(config_root="/", target_root="/", trees=None): if trees is None: |