summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-20 13:48:31 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-20 13:48:31 +0100
commit26942ea013e79d615eeca8ae0a38a39e5f945558 (patch)
tree3163be167e3d77e936459fe465e693cc5b6925d6
parent75e0cdc615d2ec6f3253b89ba80bb6995845697e (diff)
parentd68f3b26ad1e21b42677a0536af7390edbd5c476 (diff)
downloadportato-26942ea013e79d615eeca8ae0a38a39e5f945558.tar.gz
portato-26942ea013e79d615eeca8ae0a38a39e5f945558.tar.bz2
portato-26942ea013e79d615eeca8ae0a38a39e5f945558.zip
New repostuff as done in 0.12
Diffstat (limited to '')
-rw-r--r--plugins/new_version.py6
-rw-r--r--portato/constants.py6
2 files changed, 9 insertions, 3 deletions
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]
diff --git a/portato/constants.py b/portato/constants.py
index 3ab5a80..937dea5 100644
--- a/portato/constants.py
+++ b/portato/constants.py
@@ -43,6 +43,9 @@ These should be set during the installation.
@type SETTINGS_DIR: string
@var TEMPLATE_DIR: Directory containing the UI template files.
@type TEMPLATE_DIR: string
+
+@var REPOURI: the URI of the bzr repository -- only used in live versions
+@type REPOURI: string
"""
import os
from os.path import join as pjoin
@@ -68,3 +71,6 @@ LOCALE_DIR = "i18n/"
PLUGIN_DIR = pjoin(DATA_DIR, "plugins/")
SETTINGS_DIR = pjoin(HOME, "."+APP)
TEMPLATE_DIR = "portato/gui/templates/"
+
+# live versions only
+REPOURI = "lp:portato"