[kupfer: 1/2] gajim: fix detecting gajim version
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 1/2] gajim: fix detecting gajim version
- Date: Mon, 16 May 2011 19:30:43 +0000 (UTC)
commit 017fccc92aed256f1dbc3493654d808dcbebf8ee
Author: Karol BÄ?dkowski <karol bedkowski gmail com>
Date: Fri May 13 17:25:45 2011 +0200
gajim: fix detecting gajim version
For example recent daily builds have version string containing 4 parts.
Current plugin version crash on OpenChat action.
kupfer/plugin/gajim.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/gajim.py b/kupfer/plugin/gajim.py
index 186c9c1..a46e42e 100644
--- a/kupfer/plugin/gajim.py
+++ b/kupfer/plugin/gajim.py
@@ -3,7 +3,7 @@ __kupfer_name__ = _("Gajim")
__kupfer_sources__ = ("ContactsSource", )
__kupfer_actions__ = ("ChangeStatus", 'OpenChat')
__description__ = _("Access to Gajim Contacts")
-__version__ = "2010-01-06"
+__version__ = "2011-05-12"
__author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
import dbus
@@ -66,6 +66,9 @@ def _check_gajim_version(conn):
tversion = map(int, version.split('.'))
if len(tversion) == 2:
tversion += [0]
+ elif len(tversion) > 3:
+ # i.e. daily builds
+ tversion = tversion[:3]
return tversion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]