From 6971cd01335f84cdb9991508bede1fdf9cf50333 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 30 Aug 2003 06:42:35 +0000 Subject: [PATCH] New header names. --- shredcompare.py | 8 +++++--- shredtree.c | 4 ++-- shredtree.py | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/shredcompare.py b/shredcompare.py index 7ba8bde..fea085f 100755 --- a/shredcompare.py +++ b/shredcompare.py @@ -25,8 +25,10 @@ class SHIF: self.normalization.sort() elif tag == "Shred-Size": self.shredsize = int(value) - elif tag == "Hash": + elif tag == "Hash-Method": self.hash = value + elif tag == "Generator-Program": + self.generator = value elif tag == "Comment": self.comments.append(value) def __check_match(self, other, attr): @@ -165,8 +167,8 @@ if __name__ == '__main__': matches.sort(lambda x, y: cmp(x[0], y[0])) # by source chunk # OK, dump all matches. print "#SHIF-B 1.0" - print "Filter-Program: shredcompare.py 1.0" - print "Hash: MD5" + print "Merge-Program: shredcompare.py 1.0" + print "Hash-Method: MD5" print "Shred-Size: %d" % shiflist[0].shredsize print "Normalization:", ",".join(shiflist[0].normalization) print "%%" diff --git a/shredtree.c b/shredtree.c index 34dcc84..d845fda 100644 --- a/shredtree.c +++ b/shredtree.c @@ -222,8 +222,8 @@ main(int argc, char *argv[]) } puts("#SHIF-A 1.0"); - puts("Generator: shredtree 1.0"); - puts("Hash: MD5"); + puts("Generator-Program: shredtree 1.0"); + puts("Hash-Method: MD5"); printf("Shred-Size: %d\n", shredsize); printf("Normalization: %s\n", rws ? "remove_whitespace" : "none"); puts("%%"); diff --git a/shredtree.py b/shredtree.py index 6f31a04..5a95675 100755 --- a/shredtree.py +++ b/shredtree.py @@ -93,8 +93,8 @@ if __name__ == '__main__': ws = True if args: print "#SHIF-A 1.0" - print "Generator: shredtree.py 1.0" - print "Hash: MD5" + print "Generator-Program: shredtree.py 1.0" + print "Hash-Method: MD5" print "Shred-Size: %d" % shredsize normalization = [] if ws: normalization.append("remove_whitespace") -- 2.43.0