Fix new version check
This commit is contained in:
parent
7338a5daea
commit
7ac25da4bd
|
@ -79,7 +79,7 @@ def get_version():
|
||||||
:rtype: string
|
:rtype: string
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return pkg_resources.require("Deluge")[0].version.split("r")[0]
|
return pkg_resources.require("Deluge")[0].version
|
||||||
|
|
||||||
def get_revision():
|
def get_revision():
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -180,7 +180,7 @@ class Core(component.Component):
|
||||||
if self.new_release:
|
if self.new_release:
|
||||||
log.debug("new_release: %s", self.new_release)
|
log.debug("new_release: %s", self.new_release)
|
||||||
nr = self.new_release.split("_")
|
nr = self.new_release.split("_")
|
||||||
cv = deluge.common.get_version().split("_")
|
cv = deluge.common.get_version().split("-")
|
||||||
if nr[0] > cv[0]:
|
if nr[0] > cv[0]:
|
||||||
self.signalmanager.emit("new_version_available", self.new_release)
|
self.signalmanager.emit("new_version_available", self.new_release)
|
||||||
return self.new_release
|
return self.new_release
|
||||||
|
|
Loading…
Reference in New Issue