Author: carlos Date: Mon Nov 14 16:27:15 2005 New Revision: 344282 URL: http://svn.apache.org/viewcvs?rev=344282&view=rev Log: When overriding repoDirectory it's used for the next servers in the sync session
Modified: maven/components/trunk/maven-meeper/src/bin/syncopate/sync Modified: maven/components/trunk/maven-meeper/src/bin/syncopate/sync URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-meeper/src/bin/syncopate/sync?rev=344282&r1=344281&r2=344282&view=diff ============================================================================== --- maven/components/trunk/maven-meeper/src/bin/syncopate/sync (original) +++ maven/components/trunk/maven-meeper/src/bin/syncopate/sync Mon Nov 14 16:27:15 2005 @@ -6,6 +6,8 @@ my $configuration = new Config::IniFiles( -file => "syncopate.conf" ); +my $globalRepoDirectory = $configuration->val( "syncopate", "repoDirectory" ); + my $repoDirectory = $configuration->val( "syncopate", "repoDirectory" ); my $standardOptions = $configuration->val( "syncopate", "options" ); @@ -81,6 +83,8 @@ my $cmd = "rsync $standardOptions $options --rsh=\"ssh -T -l $rsyncUser\" $address:$directory/ $repoDirectory"; runRsync( $cmd, $sourceConfiguration ); + + $repoDirectory = $globalRepoDirectory; } # -----------------------------------------------------------------------------