Warn in red font if unique 1.0.4 is used

This commit is contained in:
Christian Dywan 2009-01-08 01:43:36 +01:00
parent e1701be96d
commit 0c7034f69c

View file

@ -106,6 +106,10 @@ def configure (conf):
if option_enabled ('unique'): if option_enabled ('unique'):
check_pkg ('unique-1.0', '0.9', False) check_pkg ('unique-1.0', '0.9', False)
single_instance = ['not available', 'yes'][conf.env['HAVE_UNIQUE'] == 1] single_instance = ['not available', 'yes'][conf.env['HAVE_UNIQUE'] == 1]
if single_instance == 'yes':
if conf.check_cfg (modversion='unique-1.0') == '1.0.4':
Utils.pprint ('RED', 'unique 1.0.4 has a fatal bug.')
Utils.pprint ('RED', 'Please use an older or newer version.')
else: else:
option_checkfatal ('unique', 'single instance') option_checkfatal ('unique', 'single instance')
single_instance = 'no' single_instance = 'no'