From: W. Trevor King Date: Tue, 9 Nov 2010 21:18:06 +0000 (-0500) Subject: Don't save digests in the playlist file. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=66dda8a7b860f8a95cfe2e20c844a7519de8402d;p=hooke.git Don't save digests in the playlist file. They create dependency loops: digest_{i+1} = checksum(file with digest_i) With the old way, exiting after $ hk.py -c 'new_playlist --output_playlist mylist' -c 'glob_curves_to_playlist ...*.curve' -c 'save_playlist --output mylist' -p would complain of unsaved playlists. --- diff --git a/hooke/playlist.py b/hooke/playlist.py index 1543b9f..3b5c874 100644 --- a/hooke/playlist.py +++ b/hooke/playlist.py @@ -463,8 +463,10 @@ class FilePlaylist (Playlist): self._relative_curve_paths = self.relative_curve_paths self.update_curve_paths() self._relative_curve_paths = rcp - + digest = self._digest + self._digest = None # don't save the digest (recursive file). yaml_string = yaml.dump(self, allow_unicode=True) + self._digest = digest self.update_curve_paths() return ('# Hooke playlist version %s\n' % self.version) + yaml_string