]> git.cworth.org Git - sup/commitdiff
bugfix: save sources.yaml on successfull sup-sync run
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 5 Feb 2008 16:33:39 +0000 (08:33 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 5 Feb 2008 16:34:48 +0000 (08:34 -0800)
The previous fix actulaly broke things, because sup-sync would never update
sources.yaml.

bin/sup-sync

index 611afc4c6ccdfbd42120fcd7071216ac98fc72aa..4a05257f9b515374ee9235629a3a906a09b024cc 100644 (file)
@@ -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