From c4b31d18d6cd802dd61347f760f2a64062459aa5 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Tue, 5 Feb 2008 08:33:39 -0800 Subject: [PATCH] bugfix: save sources.yaml on successfull sup-sync run The previous fix actulaly broke things, because sup-sync would never update sources.yaml. --- bin/sup-sync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/sup-sync b/bin/sup-sync index 611afc4..4a05257 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -227,6 +227,8 @@ begin $stderr.puts "Deleted #{num_del} / #{num_scanned} messages" end + index.save + if opts[:optimize] $stderr.puts "Optimizing index..." optt = time { index.index.optimize unless opts[:dry_run] } @@ -238,7 +240,6 @@ rescue Exception => e File.open("sup-exception-log.txt", "w") { |f| f.puts e.backtrace } raise ensure - #index.save # actually, don't want to save! Redwood::finish index.unlock end -- 2.45.2