summaryrefslogtreecommitdiff
path: root/portato/gui/exception_handling.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-24 00:10:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-24 00:10:31 +0200
commitb243b009bb094c06ca9d60e81cf4700e48dc2947 (patch)
tree70413ee919d642770eb6275158a25f605f3a2d08 /portato/gui/exception_handling.py
parentc9190e0f9e1969607be5ddf2c59cd2d75b12bdc0 (diff)
downloadportato-b243b009bb094c06ca9d60e81cf4700e48dc2947.tar.gz
portato-b243b009bb094c06ca9d60e81cf4700e48dc2947.tar.bz2
portato-b243b009bb094c06ca9d60e81cf4700e48dc2947.zip
Adding revison info to version output.
As the revision is no longer encoded in the version, it needs to be printed whereever it is useful. This commit adds it to the 'About' window and to the exception infos.
Diffstat (limited to '')
-rw-r--r--portato/gui/exception_handling.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py
index c973e6b..0ec1e9a 100644
--- a/portato/gui/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -97,10 +97,13 @@ def convert (version):
return ".".join(map(str, version))
def get_version_infos():
- from ..constants import VERSION
+ from ..constants import VERSION, REVISION
from ..backend import system
from ..db import _TYPE as db_type
+ if REVISION:
+ VERSION = "%s (git: %s)" % (VERSION, REVISION)
+
return "\n".join((
"Portato version: %s" % VERSION,
"System: %s" % " ".join(get_runsystem()),