When overriding repoDirectory it's used for the next servers in the sync session

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@344282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2005-11-15 00:27:15 +00:00
parent 5f190db3d6
commit adefb99e33
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,8 @@ use Net::SMTP;
my $configuration = new Config::IniFiles( -file => "syncopate.conf" ); my $configuration = new Config::IniFiles( -file => "syncopate.conf" );
my $globalRepoDirectory = $configuration->val( "syncopate", "repoDirectory" );
my $repoDirectory = $configuration->val( "syncopate", "repoDirectory" ); my $repoDirectory = $configuration->val( "syncopate", "repoDirectory" );
my $standardOptions = $configuration->val( "syncopate", "options" ); my $standardOptions = $configuration->val( "syncopate", "options" );
@ -81,6 +83,8 @@ sub syncSource()
my $cmd = "rsync $standardOptions $options --rsh=\"ssh -T -l $rsyncUser\" $address:$directory/ $repoDirectory"; my $cmd = "rsync $standardOptions $options --rsh=\"ssh -T -l $rsyncUser\" $address:$directory/ $repoDirectory";
runRsync( $cmd, $sourceConfiguration ); runRsync( $cmd, $sourceConfiguration );
$repoDirectory = $globalRepoDirectory;
} }
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------