From 0c7034f69ccc004ff8eaedd5b0550aa8bdf26ccc Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 8 Jan 2009 01:43:36 +0100 Subject: [PATCH] Warn in red font if unique 1.0.4 is used --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 8acddcc2..6f9a9147 100644 --- a/wscript +++ b/wscript @@ -105,7 +105,11 @@ def configure (conf): if option_enabled ('unique'): 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: option_checkfatal ('unique', 'single instance') single_instance = 'no' -- 2.39.5