mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
change the way that the minimum LT version is specified
This commit is contained in:
parent
8e5f8bb249
commit
1da79ceb75
2 changed files with 2 additions and 7 deletions
|
@ -45,7 +45,7 @@ supports.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
REQUIRED_VERSION = "0.14.5.0"
|
REQUIRED_VERSION = "0.14.9.0"
|
||||||
|
|
||||||
def check_version(LT):
|
def check_version(LT):
|
||||||
from deluge.common import VersionSplit
|
from deluge.common import VersionSplit
|
||||||
|
@ -57,4 +57,4 @@ try:
|
||||||
check_version(lt)
|
check_version(lt)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import libtorrent as lt
|
import libtorrent as lt
|
||||||
check_version(lt)
|
check_version(lt)
|
||||||
|
|
|
@ -76,11 +76,6 @@ class Core(component.Component):
|
||||||
# Start the libtorrent session
|
# Start the libtorrent session
|
||||||
log.info("Starting libtorrent %s session..", lt.version)
|
log.info("Starting libtorrent %s session..", lt.version)
|
||||||
|
|
||||||
# We must depend on libtorrent >= 0.14.9 due to over-downloading bug
|
|
||||||
if lt.version < "0.14.9":
|
|
||||||
log.error("This version of Deluge requires libtorrent >= 0.14.9.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# Create the client fingerprint
|
# Create the client fingerprint
|
||||||
version = [int(value.split("-")[0]) for value in deluge.common.get_version().split(".")]
|
version = [int(value.split("-")[0]) for value in deluge.common.get_version().split(".")]
|
||||||
while len(version) < 4:
|
while len(version) < 4:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue