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:
parent
6914af850d
commit
db10dd5d2c
@ -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']))
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user