change the way that the minimum LT version is specified

This commit is contained in:
Damien Churchill 2010-02-22 11:56:05 +00:00
parent 8e5f8bb249
commit 1da79ceb75
2 changed files with 2 additions and 7 deletions

View file

@ -45,7 +45,7 @@ supports.
"""
REQUIRED_VERSION = "0.14.5.0"
REQUIRED_VERSION = "0.14.9.0"
def check_version(LT):
from deluge.common import VersionSplit
@ -57,4 +57,4 @@ try:
check_version(lt)
except ImportError:
import libtorrent as lt
check_version(lt)
check_version(lt)

View file

@ -76,11 +76,6 @@ class Core(component.Component):
# Start the libtorrent session
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
version = [int(value.split("-")[0]) for value in deluge.common.get_version().split(".")]
while len(version) < 4: