file-digests 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/file-digests.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7a7259116dbf913b55651133e3bcb5e5ed545bd42e9bb63b1e5f83fb7b98a57
|
|
4
|
+
data.tar.gz: 17915ee54fceff38c52d451db21648b15fb0a3ef4c595df7736b7e077dbbb10e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d186110615604c8a833f213cf5dee0f41e19992bc34b335f59e8126ad4dc5995a5601ec9ac0559b7fa930b58c9e8ee11a258a5392dd4f4433c21765ee1e99b1b
|
|
7
|
+
data.tar.gz: ed21957d8217ae64d8aa90aec4fd81d680bd1acbfc2115f59c09acc61510b23b28fcef7083ecd51a5ce854f52d2ec8aab4b79b53599975c18b9d71f307d19f7a
|
data/lib/file-digests.rb
CHANGED
|
@@ -229,6 +229,7 @@ class FileDigests
|
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
nested_transaction do
|
|
232
|
+
puts "Tracking renames..." if @options[:verbose]
|
|
232
233
|
track_renames
|
|
233
234
|
end
|
|
234
235
|
|
|
@@ -239,6 +240,7 @@ class FileDigests
|
|
|
239
240
|
print_missing_files
|
|
240
241
|
if !@options[:test_only] && (@options[:auto] || confirm("Remove missing files from the database"))
|
|
241
242
|
nested_transaction do
|
|
243
|
+
puts "Removing missing files..." if @options[:verbose]
|
|
242
244
|
remove_missing_files
|
|
243
245
|
end
|
|
244
246
|
end
|
|
@@ -249,6 +251,7 @@ class FileDigests
|
|
|
249
251
|
if any_missing_files? || any_likely_damaged? || any_exceptions?
|
|
250
252
|
STDERR.puts "ERROR: New digest algorithm will not be in effect until there are files that are missing, likely damaged, or processed with an exception."
|
|
251
253
|
else
|
|
254
|
+
puts "Updating database to a new digest algorithm..." if @options[:verbose]
|
|
252
255
|
@new_digests.each do |old_digest, new_digest|
|
|
253
256
|
update_digest_to_new_digest new_digest, old_digest
|
|
254
257
|
end
|
|
@@ -265,6 +268,8 @@ class FileDigests
|
|
|
265
268
|
|
|
266
269
|
print_counters
|
|
267
270
|
end
|
|
271
|
+
|
|
272
|
+
puts "Performing database maintenance..." if @options[:verbose]
|
|
268
273
|
execute "PRAGMA optimize"
|
|
269
274
|
execute "VACUUM"
|
|
270
275
|
execute "PRAGMA wal_checkpoint(TRUNCATE)"
|