From: William Morgan Date: Tue, 5 Feb 2008 16:33:39 +0000 (-0800) Subject: bugfix: save sources.yaml on successfull sup-sync run X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=c4b31d18d6cd802dd61347f760f2a64062459aa5;p=sup bugfix: save sources.yaml on successfull sup-sync run The previous fix actulaly broke things, because sup-sync would never update sources.yaml. --- 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