Fix self-check for hdf5@1.10.0-patch1

This commit is contained in:
Adam J. Stewart 2016-06-22 14:40:51 -05:00
parent 86893e3dc4
commit 3f4bf04dde

View file

@ -164,7 +164,7 @@ def check_install(self, spec):
""" """
expected = """\ expected = """\
HDF5 version {version} {version} HDF5 version {version} {version}
""".format(version=str(spec.version)) """.format(version=str(spec.version.up_to(3)))
with open("check.c", 'w') as f: with open("check.c", 'w') as f:
f.write(source) f.write(source)
if '+mpi' in spec: if '+mpi' in spec: