~gtg-user/gtg/urgency-color-api

« back to all changes in this revision

Viewing changes to gtg

  • Committer: Izidor Matušov
  • Date: 2012-02-13 11:13:16 UTC
  • Revision ID: izidor.matusov@gmail.com-20120213111316-xq2h2l0ldtz1p03z
import_liblarch(): bad indentation, transforming a comment into a docstring

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        pass
43
43
    return False
44
44
    
45
 
#This funtion import liblarch from the system, then from the local folder
46
 
#and, as a last resort, give the command to install it.
47
45
def import_liblarch():
 
46
    """ Check if liblarch is installed and is compatible
 
47
 
 
48
    If not, provide information how to obtain the newest version """
 
49
 
48
50
    git_cmd= "git clone git://github.com/ploum/liblarch.git  ../liblarch"
49
51
    try:
50
52
        import liblarch
62
64
                print "\n"
63
65
                print "More informations about liblarch: https://live.gnome.org/liblarch/"
64
66
                toreturn = False
65
 
        if toreturn:
66
 
            if not liblarch.is_compatible(required_liblarch_api):
67
 
                print "Your liblarch copy has its API at version %s" %liblarch.api
68
 
                print "but your GTG copy need liblarch API version %s" %required_liblarch_api
69
 
                print ""
70
 
                print "You may fix that by downloading the last version of liblarch with:"
71
 
                print "   %s"%git_cmd
72
 
                toreturn = False
73
 
        return toreturn
 
67
 
 
68
    if toreturn and not liblarch.is_compatible(required_liblarch_api):
 
69
        print "Your liblarch copy has its API at version %s" %liblarch.api
 
70
        print "but your GTG copy need liblarch API version %s" %required_liblarch_api
 
71
        print ""
 
72
        print "You may fix that by downloading the last version of liblarch with:"
 
73
        print "   %s"%git_cmd
 
74
        toreturn = False
 
75
 
 
76
    return toreturn
74
77
 
75
78
 
76
79
try: