From b8ee7b1ee281b45b245fb454228b8ad847c56200 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 13 Mar 2013 13:36:14 -0500 Subject: mirrorcheck: s/if/elif/ when determining what check function to run This was a silly thinko here; it caused the logs to fill up with a bunch of 'unknown url type: rsync' errors. Signed-off-by: Dan McGee --- mirrors/management/commands/mirrorcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py index 93b53d6b..d6de8f22 100644 --- a/mirrors/management/commands/mirrorcheck.py +++ b/mirrors/management/commands/mirrorcheck.py @@ -219,7 +219,7 @@ def mirror_url_worker(work, output, location, timeout): try: if url.protocol.protocol == 'rsync': log = check_rsync_url(url, location, timeout) - if (url.protocol.protocol == 'ftp' and location and + elif (url.protocol.protocol == 'ftp' and location and location.family == socket.AF_INET6): # IPv6 + FTP don't work; skip checking completely log = None -- cgit v1.2.3-55-g3dc8