[#2730] Fix Deluge dev versions not starting

Using latest versions of setuptools (>11.3) resulted in deluge version strings
that contain 'dev' to produce a ValueError.
This commit is contained in:
Calum Lind 2015-08-13 22:58:19 +01:00
parent 8c4154bc1a
commit 4196912966
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ class VersionSplit(object):
ver = ver.lower()
vs = ver.replace("_", "-").split("-")
self.version = [int(x) for x in vs[0].split(".")]
self.version = [int(x) for x in vs[0].split(".") if x.isdigit()]
self.suffix = None
self.dev = False
if len(vs) > 1: