Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit b631ea4e2f77d3eef8d4a1b6e5433928150065e5
Author: Matt Domsch <matt(a)domsch.com>
Date: Tue Jul 16 10:38:48 2013 -0500
crawler: don't crawl private mirrors - really
two bugs fixed:
1) changing the value of include_private inside the loop means all
subsequent mirrors, private or not, get crawled. Whoops
2) testing for if h.is_private instead of is_private() (the result of
the function) means that was always evaluating true. Stupid.
---------------------------------------------------------------
server/crawler | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/server/crawler b/server/crawler
index eb2941a..072be5b 100755
--- a/server/crawler
+++ b/server/crawler
@@ -88,11 +88,9 @@ def doit(options, include_private=False, threads=10, config=None,
logdir=None):
commonargs.append('--canary')
if not h.is_active():
continue
- if include_private or (h.internet2 and h.internet2_clients):
- commonargs.append('--include-private')
- include_private = True
- if not include_private and h.is_private():
+ if h.is_private() and not (include_private or (h.internet2 and
h.internet2_clients)):
continue
+ commonargs.append('--include-private')
args = commonargs + ['--hostid=%s' % h.id]
if logdir is not None: