mirror of https://github.com/apache/maven.git
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:
parent
5f190db3d6
commit
adefb99e33
|
@ -6,6 +6,8 @@ use Net::SMTP;
|
|||
|
||||
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 @@ sub syncSource()
|
|||
my $cmd = "rsync $standardOptions $options --rsh=\"ssh -T -l $rsyncUser\" $address:$directory/ $repoDirectory";
|
||||
|
||||
runRsync( $cmd, $sourceConfiguration );
|
||||
|
||||
$repoDirectory = $globalRepoDirectory;
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue