From adefb99e33be8a384a3e24a1d13ada1c52248052 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Gonzalez Date: Tue, 15 Nov 2005 00:27:15 +0000 Subject: [PATCH] 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 --- maven-meeper/src/bin/syncopate/sync | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maven-meeper/src/bin/syncopate/sync b/maven-meeper/src/bin/syncopate/sync index 3797c12d53..cc4b26bafd 100755 --- a/maven-meeper/src/bin/syncopate/sync +++ b/maven-meeper/src/bin/syncopate/sync @@ -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; } # -----------------------------------------------------------------------------