summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-03-13 13:36:14 -0500
committerDan McGee <dan@archlinux.org>2013-03-13 13:36:14 -0500
commitb8ee7b1ee281b45b245fb454228b8ad847c56200 (patch)
treeced6f247bafa8309869a0fa4534bf4c33e6b6e89
parent46d21e03e81e4cacc849d798052b3ffd525d638a (diff)
mirrorcheck: s/if/elif/ when determining what check function to runrelease_2013-03-13
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>
-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 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