]> spindle.queued.net Git - midori/commitdiff
Warn in red font if unique 1.0.4 is used
authorChristian Dywan <christian@twotoasts.de>
Thu, 8 Jan 2009 00:43:36 +0000 (01:43 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 8 Jan 2009 00:43:36 +0000 (01:43 +0100)
wscript

diff --git a/wscript b/wscript
index 8acddcc25399a2c73b9afd56b334cde202442f36..6f9a91474a19cdeed96df5782fb63827634a4ba7 100644 (file)
--- 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'