]> git.pld-linux.org Git - packages/bakefile.git/blob - bakefile-versioncompare.patch
6aa399b1698cc55187c0a54388dad65aa6369aee
[packages/bakefile.git] / bakefile-versioncompare.patch
1 --- bakefile-0.2.10/src/utils.py.orig   2017-01-04 11:52:30.000000000 +0100
2 +++ bakefile-0.2.10/src/utils.py        2017-04-08 07:45:43.920622017 +0200
3 @@ -40,7 +40,10 @@
4         e.g. '0.1.4'."""
5      vcur = mk.vars['BAKEFILE_VERSION'].split('.')
6      vreq = version.split('.')
7 -    return vcur >= vreq
8 +    try:
9 +        return map(int, vcur) >= map(int, vreq)
10 +    except:
11 +        return vcur >= vreq
12  
13  def isoption(name):
14      return name in mk.options
This page took 0.026743 seconds and 2 git commands to generate.