Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit da34e61140fcdf0a2c97ef356f5b9917d5a2e60c
Author: Matt Domsch <matt(a)domsch.com>
Date: Tue Jul 16 09:37:29 2013 -0500
errorcheck: no rsync warning for private mirrors
---------------------------------------------------------------
server/errorcheck | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/server/errorcheck b/server/errorcheck
index bcf2b23..a3ca134 100755
--- a/server/errorcheck
+++ b/server/errorcheck
@@ -252,8 +252,9 @@ def check_host(sr, host):
has_rsync = True
break
if not has_rsync:
- msg = u"* Please consider adding an rsync URL for Category %s. This
will speed up the MirrorManager crawler and reduce load on your server. URLs can be
marked 'for other mirrors only', in which case they will not appear in
publiclists, mirrorlists, or metalinks, but will be available to the MirrorManager
crawler. If necessary, you can restrict access to only allow from the MirrorManager
crawler through a 'hosts allow = 209.132.181.0/24' line in your rsyncd.conf
file." % hc.category.name
- host_messages.append(msg)
+ if (host.internet2 and host.internet2_clients) or not host.is_private():
+ msg = u"* Please consider adding an rsync URL for Category %s.
This will speed up the MirrorManager crawler and reduce load on your server. URLs can be
marked 'for other mirrors only', in which case they will not appear in
publiclists, mirrorlists, or metalinks, but will be available to the MirrorManager
crawler. If necessary, you can restrict access to only allow from the MirrorManager
crawler through a 'hosts allow = 209.132.181.0/24' line in your rsyncd.conf
file." % hc.category.name
+ host_messages.append(msg)
if hc.always_up2date: always_up2date = True
if len(hc.dirs) == 0 and not hc.always_up2date: