summaryrefslogtreecommitdiffstats
path: root/mirrors/management
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-03-13 19:36:14 +0100
committerDan McGee <dan@archlinux.org>2013-03-13 19:36:14 +0100
commitb8ee7b1ee281b45b245fb454228b8ad847c56200 (patch)
treeced6f247bafa8309869a0fa4534bf4c33e6b6e89 /mirrors/management
parent46d21e03e81e4cacc849d798052b3ffd525d638a (diff)
downloadarchweb-b8ee7b1ee281b45b245fb454228b8ad847c56200.tar.gz
archweb-b8ee7b1ee281b45b245fb454228b8ad847c56200.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'mirrors/management')
-rw-r--r--mirrors/management/commands/mirrorcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py
index 93b53d6..d6de8f2 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