summaryrefslogtreecommitdiffstats
path: root/mirrors/admin.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-05-21 20:22:11 -0500
committerDan McGee <dan@archlinux.org>2013-05-21 20:24:55 -0500
commit64a92174c056a4cca1e6b7e287ca9993bcd2be1a (patch)
treed0f7ae446cf2acfff3db6cca698486909bdffcbb /mirrors/admin.py
parent13bc975d3022ea8e72769ad38de224b9869f5aab (diff)
downloadarchweb-64a92174c056a4cca1e6b7e287ca9993bcd2be1a.tar.gz
archweb-64a92174c056a4cca1e6b7e287ca9993bcd2be1a.zip
Begin removal of FTP mirror support
FTP is a terrible protocol these days compared to HTTP. IPv6 support is spotty at best, it is much slower for the connect/begin transfer cycle, and overall just doesn't provide anything HTTP does better. Start killing bits that we've added to treat FTP as a first-class protocol and regulate it to the back seat. The expectation here is once this commit goes live to the production site, the FTP mirror URLs themselves will get removed completely from the database, and the FTP protocol object itself will get deleted. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/admin.py')
-rw-r--r--mirrors/admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mirrors/admin.py b/mirrors/admin.py
index 9c88207d..d0f2f475 100644
--- a/mirrors/admin.py
+++ b/mirrors/admin.py
@@ -10,6 +10,7 @@ from .models import (Mirror, MirrorProtocol, MirrorUrl, MirrorRsync,
class MirrorUrlForm(forms.ModelForm):
class Meta:
model = MirrorUrl
+
def clean_url(self):
# is this a valid-looking URL?
url_parts = urlparse(self.cleaned_data["url"])