aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-02-07 21:30:32 +0000
committerPascal Terjan <pterjan@mageia.org>2012-02-07 21:30:32 +0000
commit2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788 (patch)
tree226088106c078c5f5a250896fa689cbe8bbc6050
parent6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c (diff)
downloadmga-youri-submit-2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788.tar
mga-youri-submit-2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788.tar.gz
mga-youri-submit-2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788.tar.bz2
mga-youri-submit-2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788.tar.xz
mga-youri-submit-2b9ad2b11a1dcc487c4de1ad3a19b2e14f0c2788.zip
Use --delay-updates to make things more atomic
-rw-r--r--lib/Youri/Submit/Post/Mirror.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Submit/Post/Mirror.pm b/lib/Youri/Submit/Post/Mirror.pm
index cfc0bbd..31f7066 100644
--- a/lib/Youri/Submit/Post/Mirror.pm
+++ b/lib/Youri/Submit/Post/Mirror.pm
@@ -36,7 +36,7 @@ sub run {
croak "Missing destination" unless $self->{'_destination'};
- if (system("/usr/bin/rsync -alH --delete --delete-after $root/$target/ $self->{_destination}/$target/")) {
+ if (system("/usr/bin/rsync -alH --delete --delete-delay --delay-updates $root/$target/ $self->{_destination}/$target/")) {
$self->{_error} = "Rsync command failed ($!)";
}