Nicer configuration message on ruby detection

This commit is contained in:
Thomas Nagy 2016-02-24 07:16:04 +01:00
parent df8e144631
commit e176101c8c
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 2 additions and 4 deletions

View File

@ -71,13 +71,11 @@ def check_ruby_version(self, minver=()):
cver = ''
if minver:
cver = '> ' + '.'.join(str(x) for x in minver)
if ver < minver:
self.fatal('ruby is too old %r' % ver)
cver = '.'.join([str(x) for x in minver])
else:
cver = ver
self.msg('Checking for ruby version %s' % str(minver or ''), cver)
self.msg('Checking for ruby version %s' % cver, version)
@conf
def check_ruby_ext_devel(self):