Update to 1.1.2 libtorrent requirement
This commit is contained in:
parent
5348465e60
commit
35c78eee41
|
@ -24,12 +24,7 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import libtorrent as lt
|
import libtorrent as lt
|
||||||
|
|
||||||
REQUIRED_VERSION = '1.1.1.0'
|
REQUIRED_VERSION = '1.1.2.0'
|
||||||
|
|
||||||
# XXX: Remove and update required when 1.1.2 is released!
|
|
||||||
if not hasattr(lt, 'generate_fingerprint'):
|
|
||||||
raise ImportError('Deluge %s requires lastest github code from libtorrent RC_1_1 branch.\n'
|
|
||||||
'Ubuntu users can add the develop PPA: ppa:deluge-team/develop' % get_version())
|
|
||||||
|
|
||||||
if VersionSplit(lt.__version__) < VersionSplit(REQUIRED_VERSION):
|
if VersionSplit(lt.__version__) < VersionSplit(REQUIRED_VERSION):
|
||||||
raise ImportError('Deluge %s requires libtorrent >= %s' % (get_version(), REQUIRED_VERSION))
|
raise ImportError('Deluge %s requires libtorrent >= %s' % (get_version(), REQUIRED_VERSION))
|
||||||
|
|
|
@ -575,11 +575,6 @@ class TorrentManager(component.Component):
|
||||||
else:
|
else:
|
||||||
paused = False
|
paused = False
|
||||||
|
|
||||||
# XXX: Temporary workaround for critical bug with RC_1_1 lt code.
|
|
||||||
# remove this code when lt 1.2 is released.
|
|
||||||
for tracker in torrent.trackers:
|
|
||||||
tracker.pop('last_error', None)
|
|
||||||
|
|
||||||
torrent_state = TorrentState(
|
torrent_state = TorrentState(
|
||||||
torrent.torrent_id,
|
torrent.torrent_id,
|
||||||
torrent.filename,
|
torrent.filename,
|
||||||
|
|
Loading…
Reference in New Issue