Previously, the md5 hash for folder/file names was based on the entire
.ly file contents. This worked okay until the preamble changed, which
then broke `make check'.
This commit changes the strategy so that only the LY code (without the
preamble) is used when computing the md5 hash. This will fix the regtest
comparison output between releases from now on.
except ImportError:
from md5 import md5
- hash = md5 (self.relevant_contents (self.full_ly ()))
+ # We only want to calculate the hash based
+ # on the snippet code, not the snippet + preamble
+ hash = md5 (self.relevant_contents (self.ly ()))
## let's not create too long names.
self.checksum = hash.hexdigest ()[:10]