1 |
commit: a0841c139bd7830a56ad9e0dfb215148711a68c7 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 29 05:41:28 2020 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 05:41:28 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=a0841c13 |
7 |
|
8 |
probe-mirmon: be quiet if rsync site is broken |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
probe-mirmon | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/probe-mirmon b/probe-mirmon |
16 |
index ddd8546..8dce832 100755 |
17 |
--- a/probe-mirmon |
18 |
+++ b/probe-mirmon |
19 |
@@ -48,8 +48,8 @@ sub handle_rsync { |
20 |
|
21 |
$file =~ s/\W/_/g; # translate all non-letters to _ |
22 |
|
23 |
- if ( my $fail = system '/usr/bin/rsync', qw( --no-motd --timeout ), $timeout, $url, "$dir/$file" ) { |
24 |
- warn "rsync failed, exit code $fail, $! $? $@\n"; |
25 |
+ if ( my $fail = system '/usr/bin/rsync', qw( -q --no-motd --timeout ), $timeout, $url, "$dir/$file" ) { |
26 |
+ #warn "rsync failed, exit code $fail, $! $? $@\n"; |
27 |
exit $fail; |
28 |
} |