~ubuntu-branches/ubuntu/utopic/sup-mail/utopic

« back to all changes in this revision

Viewing changes to bin/sup-sync

  • Committer: Bazaar Package Importer
  • Author(s): Decklin Foster
  • Date: 2010-05-01 23:05:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100501230505-nl6cgj5lp4e64gz9
Tags: 0.11-2
Remove stray rubygems requires (Closes: #579703)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
require 'uri'
4
4
require 'trollop'
5
 
require "sup"; Redwood::check_library_version_against "0.10.2"
 
5
require "sup"; Redwood::check_library_version_against "0.11"
6
6
 
7
7
PROGRESS_UPDATE_INTERVAL = 15 # seconds
8
8
 
75
75
 
76
76
Other options:
77
77
EOS
78
 
  opt :index, "Use this index type ('auto' for autodetect)", :default => "auto"
79
78
  opt :verbose, "Print message ids as they're processed."
80
79
  opt :optimize, "As the final operation, optimize the index."
81
80
  opt :all_sources, "Scan over all sources.", :short => :none
95
94
op = [:asis, :restore, :discard].find { |x| opts[x] } || :asis
96
95
 
97
96
Redwood::start
98
 
index = Redwood::Index.init opts[:index]
 
97
index = Redwood::Index.init
99
98
 
100
99
restored_state = if opts[:restore]
101
100
  dump = {}