mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 19:30:04 +01:00
fix for python 2.4
This commit is contained in:
parent
1ee780d9aa
commit
56ac2bf5e8
@ -60,10 +60,14 @@ class xsubpp(Task.Task):
|
||||
def check_perl_version(self, minver=None):
|
||||
"""
|
||||
Check if Perl is installed, and set the variable PERL.
|
||||
minver is supposed to be a tuple
|
||||
"""
|
||||
res = True
|
||||
|
||||
cver = "" if minver is None else ".".join(map(str,minver))
|
||||
if minver:
|
||||
cver = '.'.join(map(str,minver))
|
||||
else:
|
||||
cver = ''
|
||||
|
||||
self.start_msg('Checking for minimum perl version %s' % cver)
|
||||
|
||||
@ -87,7 +91,7 @@ def check_perl_version(self, minver=None):
|
||||
if ver < minver:
|
||||
res = False
|
||||
|
||||
self.end_msg(version, color="GREEN" if res else "YELLOW")
|
||||
self.end_msg(version, color=res and "GREEN" or "YELLOW")
|
||||
return res
|
||||
|
||||
@conf
|
||||
|
Loading…
Reference in New Issue
Block a user