Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index 5d85e22b3a8e989d30ff358ead3f1098df882c37..296b7c88d7fb3ad34390c1eae7f67a9b4d768e03 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -455,7 +455,7 @@ struct Task { |
FLAGS_readPath[0])); |
} |
- if (!FLAGS_writePath.isEmpty() && !gUninterestingHashes.contains(md5)) { |
+ if (!FLAGS_writePath.isEmpty()) { |
const char* ext = task->sink->fileExtension(); |
if (data->getLength()) { |
WriteToDisk(*task, md5, ext, data, data->getLength(), NULL); |
@@ -483,6 +483,12 @@ struct Task { |
result.md5 = md5; |
JsonWriter::AddBitmapResult(result); |
+ // If an MD5 is uninteresting, we want it noted in the JSON file, |
+ // but don't want to dump it out as a .png (or whatever ext is). |
+ if (gUninterestingHashes.contains(md5)) { |
+ return; |
+ } |
borenet
2015/04/08 11:47:54
I didn't realize WriteToDisk did more than write t
|
+ |
const char* dir = FLAGS_writePath[0]; |
if (0 == strcmp(dir, "@")) { // Needed for iOS. |
dir = FLAGS_resourcePath[0]; |