Add db checksum to verbose logging during update

This commit is contained in:
surfer190
2015-04-03 10:27:26 +02:00
parent 0aa8a97070
commit 4b587593ee

View File

@@ -98,6 +98,7 @@ class DbUpdater
puts ' [i] Downloading new file' if verbose puts ' [i] Downloading new file' if verbose
dl_checksum = download(filename) dl_checksum = download(filename)
puts " [i] Downloaded File Checksum: #{dl_checksum}" if verbose puts " [i] Downloaded File Checksum: #{dl_checksum}" if verbose
puts " [i] Database File Checksum : #{db_checksum}" if verbose
unless dl_checksum == db_checksum unless dl_checksum == db_checksum
fail "#{filename}: checksums do not match" fail "#{filename}: checksums do not match"