From: wmorgan Date: Mon, 16 Apr 2007 23:00:27 +0000 (+0000) Subject: catch source errors during offset resets X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=51e14a0a30b37f08b230a377d17bcf42f729b0b2;p=sup catch source errors during offset resets git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@382 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- 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