Remove torrent tracker from archweb

Arch no longer runs it's own torrent tracker as DHT and webseeds work
well enough for us.
This commit is contained in:
Jelle van der Waa 2020-07-09 21:55:13 +02:00
parent 6914af850d
commit db10dd5d2c
No known key found for this signature in database
GPG Key ID: C06086337C50773E
2 changed files with 0 additions and 9 deletions

View File

@ -4,7 +4,6 @@
import hashlib
from pytz import utc
from django.conf import settings
from django.urls import reverse
from django.db import models
from django.db.models.signals import pre_save
@ -48,8 +47,6 @@ def magnet_uri(self):
query = [
('dn', "archlinux-%s-x86_64.iso" % self.version),
]
if settings.TORRENT_TRACKERS:
query.extend(('tr', uri) for uri in settings.TORRENT_TRACKERS)
metadata = self.torrent()
if metadata and 'info_hash' in metadata:
query.insert(0, ('xt', "urn:btih:%s" % metadata['info_hash']))

View File

@ -164,12 +164,6 @@
# community bit on the end, repo.svn_root is appended)
SVN_BASE_URL = 'svn://svn.archlinux.org/'
# Trackers used for ISO download magnet links
TORRENT_TRACKERS = (
'udp://tracker.archlinux.org:6969',
'http://tracker.archlinux.org:6969/announce',
)
# How long to keep mirrorlog's in days
MIRRORLOG_RETENTION_PERIOD = 365