From 129c7fabb4189bb2334b6e91cec3c6eda4fab224 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 2 Jun 2012 13:50:51 -0700 Subject: [PATCH] keep the expected hash in scrub.json if the scrub fails --- scrub | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrub b/scrub index 2ccb7a7..40a4b7f 100755 --- a/scrub +++ b/scrub @@ -64,6 +64,8 @@ class Scrubber new_hashes[basename] = hash puts "[new] #{hash} - #{relative_filename}" if options.verbose when :fail + # no change in scrub.json, just report the new sha + new_hashes[basename] = expected_hash @failures << { :filename => relative_filename, :hash => hash,