From 7ac25da4bddc62c2562ccf03b329f75d23f6045e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 26 Dec 2008 08:04:31 +0000 Subject: [PATCH] Fix new version check --- deluge/common.py | 2 +- deluge/core/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index eab2a1eeb..e1df31779 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -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(): """ diff --git a/deluge/core/core.py b/deluge/core/core.py index e17c5af4e..d0d5264b7 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -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