View | Details | Raw Unified | Return to bug 2742
Collapse All | Expand All

(-)a/bindings/python/wscript (-2 / +8 lines)
 Lines 68-75    Link Here 
68
68
69
69
70
def split_version(version):
70
def split_version(version):
71
    ver = re.split('[.+]', version)[:4]
71
    if (re.search ('post', version)):
72
    return (int(ver[0]), int(ver[1]), int(ver[2]), int(ver[3].split('post')[1]))
72
        # Version format such as '0.17.0.post58+ngcf00cc0'
73
        ver = re.split('[.+]', version)[:4]
74
        return (int(ver[0]), int(ver[1]), int(ver[2]), int(ver[3].split('post')[1]))
75
    else:
76
        # Version format such as '0.18.0'
77
        ver = re.split('[.]', version)[:3]
78
        return (int(ver[0]), int(ver[1]), int(ver[2]), 0)
73
79
74
80
75
def configure(conf):
81
def configure(conf):

Return to bug 2742