Author: loonycyborg
Date: Thu Mar 26 21:23:30 2009
New Revision: 34152

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34152&view=rev
Log:
Prevent lua check from adding flags to env when it fails.

Modified:
    trunk/scons/lua.py

Modified: trunk/scons/lua.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/scons/lua.py?rev=34152&r1=34151&r2=34152&view=diff
==============================================================================
--- trunk/scons/lua.py (original)
+++ trunk/scons/lua.py Thu Mar 26 21:23:30 2009
@@ -3,6 +3,7 @@
 
 def CheckLua(context, require_version):
     env = context.env
+    backup = env.Clone().Dictionary()
 
     context.Message("Checking for Lua development files version " + 
require_version + "... ")
 
@@ -23,6 +24,7 @@
         return True
     else:
         context.Result("no")
+        env.Replace(**backup)
         return False
 
 config_checks = { "CheckLua" : CheckLua }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to