From e73a261262a60e1d5cbf6f115a9178730e9729e4 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Wed, 3 Apr 2013 09:58:35 -0500 Subject: [PATCH] FileAnalysis: fix file type canonification for file_analysis.log --- testing/scripts/diff-remove-mime-types | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/scripts/diff-remove-mime-types b/testing/scripts/diff-remove-mime-types index ec6b40a513..9bf49d0283 100755 --- a/testing/scripts/diff-remove-mime-types +++ b/testing/scripts/diff-remove-mime-types @@ -8,9 +8,9 @@ BEGIN { FS="\t"; OFS="\t"; type_col = -1; desc_col = -1 } /^#fields/ { for ( i = 2; i < NF; ++i ) { - if ( $i == "mime_type" || $i == "file_type" ) + if ( $i == "mime_type" ) type_col = i-1; - if ( $i == "mime_desc" ) + if ( $i == "mime_desc" || $i == "file_type" ) desc_col = i-1; } }