[#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:
parent
8c4154bc1a
commit
4196912966
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue