commit
d7bdfe3b4c
2 changed files with 4 additions and 32 deletions
|
@ -1,28 +0,0 @@
|
|||
From acf4fc4193d70fce2adace626dca2f90105622f6 Mon Sep 17 00:00:00 2001
|
||||
From: Calum Lind <calumlind+deluge@gmail.com>
|
||||
Date: Sat, 22 Aug 2015 14:31:26 +0000
|
||||
Subject: [#2233] [lp:#1487704] Fix AttributeError in set_trackers with lt 1.0
|
||||
|
||||
---
|
||||
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
|
||||
index 7ca35e1..9003d8b 100644
|
||||
--- deluge/core/torrent.py
|
||||
+++ deluge/core/torrent.py
|
||||
@@ -328,9 +328,12 @@ class Torrent(object):
|
||||
if trackers == None:
|
||||
trackers = []
|
||||
for value in self.handle.trackers():
|
||||
- tracker = {}
|
||||
- tracker["url"] = value.url
|
||||
- tracker["tier"] = value.tier
|
||||
+ if lt.version_major == 0 and lt.version_minor < 15:
|
||||
+ tracker = {}
|
||||
+ tracker["url"] = value.url
|
||||
+ tracker["tier"] = value.tier
|
||||
+ else:
|
||||
+ tracker = value
|
||||
trackers.append(tracker)
|
||||
self.trackers = trackers
|
||||
self.tracker_host = None
|
||||
--
|
||||
cgit v0.9.2
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'deluge'
|
||||
pkgname=deluge
|
||||
version=1.3.11
|
||||
revision=4
|
||||
version=1.3.12
|
||||
revision=1
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
pycompile_module="deluge"
|
||||
|
@ -12,5 +12,5 @@ short_desc="BitTorrent client written in Python/PyGTK"
|
|||
maintainer="Alexey Rochev <equeim@gmail.com>"
|
||||
homepage="http://deluge-torrent.org/"
|
||||
license="GPL-3"
|
||||
distfiles="http://download.deluge-torrent.org/source/$pkgname-$version.tar.gz"
|
||||
checksum="80b0a2a3460d52a5f53df26a9ce314e3e792f2e3f45b7c389140fd830bdee1b0"
|
||||
distfiles="http://download.deluge-torrent.org/source/${pkgname}-${version}.tar.gz"
|
||||
checksum="ebc8f3f2e9ecc652e9f42ed1798ee102d6fdf89d5a627c6fd24948bf9a73af13"
|
||||
|
|
Loading…
Reference in a new issue