From 51e14a0a30b37f08b230a377d17bcf42f729b0b2 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Mon, 16 Apr 2007 23:00:27 +0000 Subject: [PATCH] catch source errors during offset resets git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@382 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- bin/sup-sync | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/sup-sync b/bin/sup-sync index 2103f38..14d72f4 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -113,16 +113,16 @@ end sources = index.usual_sources if sources.empty? sources = index.sources if opts[:all_sources] -unless target == :new - if opts[:start_at] - sources.each { |s| s.seek_to! opts[:start_at] } - else - sources.each { |s| s.reset! } - end -end - seen = {} begin + unless target == :new + if opts[:start_at] + sources.each { |s| s.seek_to! opts[:start_at] } + else + sources.each { |s| s.reset! } + end + end + sources.each do |source| $stderr.puts "Scanning #{source}..." num_added = num_updated = num_scanned = num_restored = 0 -- 2.45.2