commit c4b31d18d6cd802dd61347f760f2a64062459aa5
parent cae928e0d57c55488b746e6221b6fe0bbb3319dd
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Tue, 5 Feb 2008 08:33:39 -0800
bugfix: save sources.yaml on successfull sup-sync run
The previous fix actulaly broke things, because sup-sync would never update
sources.yaml.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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