From 65bffab09e0dd92eaefa266ab5326439293f5966 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 13 Sep 2003 04:34:05 +0000 Subject: [PATCH] Fix filterator to handle the length field. --- filterator | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/filterator b/filterator index 9b34b96..af62511 100755 --- a/filterator +++ b/filterator @@ -5,7 +5,7 @@ import os, sys, re, getopt # Template for parsing the output from comparator. -shredline = re.compile("(.*):([0-9]+):([0-9]+)") +shredline = re.compile("(.*):([0-9]+):([0-9]+):([0-9]+)") # Tokens to be removed when checking whether a shred is significant junk = { @@ -87,9 +87,10 @@ def report_common(stats=1,list=1): break m = shredline.search(line) if m: - locations.append((m.group(1), int(m.group(2)), int(m.group(3)))) + locations.append((m.group(1), int(m.group(2)), + int(m.group(3)), int(m.group(4)))) if line == '%%\n': - for (file, start, end) in locations: + for (file, start, end, length) in locations: if end - start + 1 < minsize: continue try: -- 2.43.0