[Pkg-sugar-commit] [sugar-terminal-activity] 01/09: Ensure Vte version is available

Jonas Smedegaard dr at jones.dk
Wed Nov 15 02:42:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/45.2-1
in repository sugar-terminal-activity.

commit 5b1cddfb2e5cdaee02c33ab88ea1abe76383c241
Author: James Cameron <quozl at laptop.org>
Date:   Mon Oct 9 16:58:45 2017 +1100

    Ensure Vte version is available
    
    For Vte API versions that do not provide MINOR_VERSION, use the
    attribute _version instead.  Fedora 18 is one such version.
---
 terminal.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/terminal.py b/terminal.py
index d7b91de..e57d030 100644
--- a/terminal.py
+++ b/terminal.py
@@ -70,9 +70,13 @@ VTE_VERSION = 0
 try:
     VTE_VERSION = Vte.MINOR_VERSION
 except:
-    # version is not published in old versions of vte
+    # version is not published in some versions of vte, notably 2.90
     pass
 
+if VTE_VERSION == 0:
+    if hasattr(Vte, '_version'):
+        major, minor = Vte._version.split('.')
+        VTE_VERSION = minor
 
 class TerminalActivity(activity.Activity):
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-terminal-activity.git



More information about the pkg-sugar-commit mailing list