From d68f3b26ad1e21b42677a0536af7390edbd5c476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 20 Feb 2009 13:42:54 +0100 Subject: Generalize the new_version plugin --- plugins/new_version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/new_version.py b/plugins/new_version.py index 7e4d3c0..8cdf0a5 100644 --- a/plugins/new_version.py +++ b/plugins/new_version.py @@ -18,7 +18,7 @@ import gobject from portato.helper import debug, warning from portato import get_listener -from portato.constants import VERSION, APP_ICON, APP +from portato.constants import REPOURI, VERSION, APP_ICON, APP from portato.gui.utils import GtkThread class NewVersionFinder(Plugin): @@ -34,7 +34,7 @@ class NewVersionFinder(Plugin): def find_version (self, rev): try: - b = branch.Branch.open("lp:portato") + b = branch.Branch.open(REPOURI) except Exception, e: warning("NEW_VERSION :: Exception occured while accessing the remote branch: %s", str(e)) return @@ -58,7 +58,7 @@ class NewVersionFinder(Plugin): Run the thread once. """ v = VERSION.split() - if len(v) != 3 or v[0] != "9999": + if len(v) != 3: return None rev = v[-1] -- cgit v1.2.3