mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
Revert "[#2852] Set maximum supported libtorrent version to 1.0.x"
This reverts commit 852b51f224
.
Changes applied for libtorrent 1.1.1 release should bring back
backward compatibility for Deluge 1.3.
This commit is contained in:
parent
85fdacc0e7
commit
454c7be364
1 changed files with 2 additions and 8 deletions
|
@ -46,17 +46,11 @@ supports.
|
|||
"""
|
||||
|
||||
REQUIRED_VERSION = "0.14.9.0"
|
||||
# The first major version (and all subsequent ones) to be unsupported.
|
||||
UNSUPPORTED_VERSION = "1.1.0.0"
|
||||
|
||||
|
||||
def check_version(lt):
|
||||
from deluge.common import VersionSplit
|
||||
if (VersionSplit(lt.version) < VersionSplit(REQUIRED_VERSION) or
|
||||
VersionSplit(lt.version) >= VersionSplit(UNSUPPORTED_VERSION)):
|
||||
raise ImportError("This version of Deluge requires libtorrent >=%s and not >= %s."
|
||||
% (REQUIRED_VERSION, UNSUPPORTED_VERSION))
|
||||
|
||||
if VersionSplit(lt.version) < VersionSplit(REQUIRED_VERSION):
|
||||
raise ImportError("This version of Deluge requires libtorrent >=%s!" % REQUIRED_VERSION)
|
||||
|
||||
try:
|
||||
import deluge.libtorrent as lt
|
||||
|
|
Loading…
Add table
Reference in a new issue