aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2010-04-01 19:57:53 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2010-04-01 19:57:53 +0000
commitf08555f5087b01fa9ce655efd137c66fb297587c (patch)
tree5053f4c34edda786efef349fc5ee520a6a1c4c2f
parent815be9c01c28b023f902a4d2c2fadc178da2b6f7 (diff)
downloadmga-youri-submit-f08555f5087b01fa9ce655efd137c66fb297587c.tar
mga-youri-submit-f08555f5087b01fa9ce655efd137c66fb297587c.tar.gz
mga-youri-submit-f08555f5087b01fa9ce655efd137c66fb297587c.tar.bz2
mga-youri-submit-f08555f5087b01fa9ce655efd137c66fb297587c.tar.xz
mga-youri-submit-f08555f5087b01fa9ce655efd137c66fb297587c.zip
Don't pull *.new or .* from package queues
These two patterns may match temporary filenames used by Send.pm to copy packages between queues.
-rw-r--r--lib/Youri/Submit/Pre/Rsync.pm2
1 files changed, 1 insertions, 1 deletions
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
}