Take out "batch" cheat for debugging.
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 1 Oct 2011 02:38:41 +0000 (22:38 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 1 Oct 2011 02:38:41 +0000 (22:38 -0400)
Allow alternate spellings of install

bucardo

diff --git a/bucardo b/bucardo
index 2b85651f68adda43a977334d81c875d4b678afb9..a7595424897f0fd13eae5c2afc36880346d7f1b3 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -219,7 +219,7 @@ my $nouns = join ' ' => @nouns;
 my $adverb;
 
 ## Installation must happen before we try to connect!
-install() if $verb eq 'install';
+install() if $verb =~ /instal/i;
 
 ## For everything else, we need to connect to a previously installed Bucardo database
 
@@ -7490,7 +7490,7 @@ sub upgrade {
 
     if ($changes) {
         printf "Okay to commit $changes %s? ", $changes==1 ? 'change' : 'changes';
-        #exit if <STDIN> !~ /Y/i;
+        exit if <STDIN> !~ /Y/i;
         $dbh->commit();
         print "Changes have been commited\n";
     }
@@ -7611,7 +7611,7 @@ Optional information:
   rebuild_index      (whether to rebuild indexes after every sync, defaults to 0 (off))
   lifetime=number    (how long a kid can live before being reaped, defaults to null (no limit))
   maxkicks=number    (how many kicks a kid can process before being reaped, defaults to 0 (no limit))
-  onetimecopy=number (for pushdelta syncs only, controls whether we switch to a fullcopy mode for one run,
+  onetimecopy=number (controls whether we switch to a fullcopy mode for one run,
                       0=off, 1=always full copy, 2=only copy tables which are empty on the target)
   tables=list        (list of tables to add to this new sync,
                       will create a herd with the same name as the sync)};