aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-02-07 21:00:55 +0000
committerPascal Terjan <pterjan@mageia.org>2012-02-07 21:00:55 +0000
commit6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c (patch)
treeae3f8b086b1cbfdff4645035290f7cad70c5afc8
parent9c8ed159444b33a63a819906947b43b2585d7a4e (diff)
downloadmga-youri-submit-6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c.tar
mga-youri-submit-6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c.tar.gz
mga-youri-submit-6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c.tar.bz2
mga-youri-submit-6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c.tar.xz
mga-youri-submit-6ec6c80c7ffc7fc46bec47373aa35f29383cdd4c.zip
Use --delete-after to reduce inconsistent time
-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 cc98fe1..cfc0bbd 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 $root/$target/ $self->{_destination}/$target/")) {
+ if (system("/usr/bin/rsync -alH --delete --delete-after $root/$target/ $self->{_destination}/$target/")) {
$self->{_error} = "Rsync command failed ($!)";
}