Ignore _* when doing new version check

This commit is contained in:
Andrew Resch 2008-12-18 07:06:06 +00:00
parent eb4f1fdb04
commit 8ed2d25ce5
1 changed files with 3 additions and 1 deletions

View File

@ -317,7 +317,9 @@ class Core(
def check_new_release(self):
if self.new_release:
log.debug("new_release: %s", self.new_release)
if self.new_release > deluge.common.get_version():
nr = self.new_release.split("_")
cv = deluge.common.get_version().split("_")
if nr[0] > cv[0]:
self.signals.emit("new_version_available", self.new_release)
return self.new_release
return False