File gtg-Correct-handling-of-liblarch-API-1.0.patch of Package gtg

=== modified file 'GTG/tools/import_liblarch.py'
--- GTG/tools/import_liblarch.py	2012-12-18 09:50:32 +0000
+++ GTG/tools/import_liblarch.py	2013-01-12 15:52:17 +0000
@@ -78,11 +78,17 @@
 """
         is_liblarch_compatible = False
     if not is_liblarch_compatible:
+        try:
+            liblarch_version = liblarch.API
+        except AttributeError:
+            # Liblarch 1.0 has lowercased API variable
+            liblarch_version = liblarch.api
+
         print """Your liblarch copy has its API at version %s
 but your GTG copy need liblarch API version %s
 You may fix that by downloading the last version of liblarch with
 
-%s """ % (liblarch.API, REQUIRED_LIBLARCH_API, GIT_CMD)
+%s """ % (liblarch_version, REQUIRED_LIBLARCH_API, GIT_CMD)
         return False
 
     return True

openSUSE Build Service is sponsored by