From f08555f5087b01fa9ce655efd137c66fb297587c Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Thu, 1 Apr 2010 19:57:53 +0000 Subject: Don't pull *.new or .* from package queues These two patterns may match temporary filenames used by Send.pm to copy packages between queues. --- lib/Youri/Submit/Pre/Rsync.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Youri/Submit/Pre/Rsync.pm b/lib/Youri/Submit/Pre/Rsync.pm index 036612c..b6b45af 100644 --- a/lib/Youri/Submit/Pre/Rsync.pm +++ b/lib/Youri/Submit/Pre/Rsync.pm @@ -35,7 +35,7 @@ sub run { my ($self, $pre_packages, $repository, $target, $define) = @_; croak "Not a class method" unless ref $self; - if (system("rsync --remove-sent-files -avlPHe 'ssh -xc arcfour' $self->{_user}\@$self->{_host}:$self->{_source}/$target/ $self->{_destination}/$target/")) { + if (system("rsync --exclude '*.new' --exclude '.*' --remove-sent-files -avlPHe 'ssh -xc arcfour' $self->{_user}\@$self->{_host}:$self->{_source}/$target/ $self->{_destination}/$target/")) { $self->{_error} = "Rsync command failed ($!)"; return } -- cgit v1.2.1