From 66dda8a7b860f8a95cfe2e20c844a7519de8402d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 9 Nov 2010 16:18:06 -0500 Subject: [PATCH] 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. --- hooke/playlist.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.26.2