Add temporary libtorent git RC_1_1 branch requirement

This commit is contained in:
Calum Lind 2017-01-24 21:17:07 +00:00
parent b71a2fa549
commit 108dd9e4b8
1 changed files with 5 additions and 0 deletions

View File

@ -25,5 +25,10 @@ except ImportError:
REQUIRED_VERSION = '1.1.1.0' REQUIRED_VERSION = '1.1.1.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))