From 35007b7890aff1654022309ad4913fa46eb526d7 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Tue, 9 Feb 2021 17:34:10 -0500 Subject: [PATCH] 2021-02-09 Change negative indexes to account for new columns --- test/script/tskdbdiff.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/script/tskdbdiff.py b/test/script/tskdbdiff.py index 1c8f83e481..762735c8e3 100644 --- a/test/script/tskdbdiff.py +++ b/test/script/tskdbdiff.py @@ -469,9 +469,9 @@ def normalize_db_entry(line, files_table, vs_parts_table, vs_info_table, fs_info # Ignore TIFF size and hash if extracted from PDFs. # See JIRA-6951 for more details. - # index -1 = last element in the list, which is extension - # index -3 = 3rd from the end, which is the parent path. - if fields_list[-1] == "'tif'" and fields_list[-3].endswith(".pdf/'"): + # index -3 = 3rd from the end, which is extension + # index -5 = 5th from the end, which is the parent path. + if fields_list[-3] == "'tif'" and fields_list[-5].endswith(".pdf/'"): fields_list[15] = "'SIZE_IGNORED'" fields_list[23] = "'MD5_IGNORED'" fields_list[24] = "'SHA256_IGNORED'"