keep the expected hash in scrub.json if the scrub fails

This commit is contained in:
Sami Samhuri 2012-06-02 13:50:51 -07:00
parent acd00e4bd5
commit 129c7fabb4

2
scrub
View file

@ -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,