Fix new version check

This commit is contained in:
Andrew Resch 2008-12-26 08:04:31 +00:00
parent 7338a5daea
commit 7ac25da4bd
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ def get_version():
:rtype: string
"""
return pkg_resources.require("Deluge")[0].version.split("r")[0]
return pkg_resources.require("Deluge")[0].version
def get_revision():
"""

View File

@ -180,7 +180,7 @@ class Core(component.Component):
if self.new_release:
log.debug("new_release: %s", self.new_release)
nr = self.new_release.split("_")
cv = deluge.common.get_version().split("_")
cv = deluge.common.get_version().split("-")
if nr[0] > cv[0]:
self.signalmanager.emit("new_version_available", self.new_release)
return self.new_release