]> git.cworth.org Git - sup/commitdiff
sup-sync-back bugfix: use usual sources if no sources specified
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 17 Jun 2007 20:32:04 +0000 (20:32 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 17 Jun 2007 20:32:04 +0000 (20:32 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@462 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup-sync-back

index 871af880216fcb55802aceb80bda7e616913fc07..688ccda333f39cb2073f477617f79038d1153b12 100644 (file)
@@ -60,6 +60,7 @@ begin
     s.is_a?(Redwood::MBox::Loader) or Trollop::die "#{uri} is not an mbox source."
     s
   end
+  sources = index.usual_sources if sources.empty?
 
   any_modified = false
   sources.each { |s| s.reset! }