Author: loonycyborg
Date: Sun Apr  6 18:18:09 2008
New Revision: 25634

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25634&view=rev
Log:
scons recipe: made SDL checks restore env on failure.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=25634&r1=25633&r2=25634&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sun Apr  6 18:18:09 2008
@@ -215,6 +215,8 @@
             patchlevel    = int(version[2])
         except (ValueError, IndexError):
             patch_level = 0
+
+    backup = backup_env(context.env, ["CPPPATH", "LIBPATH", "LIBS"])
 
     sdldir = context.env.get("SDLDIR", "/usr/")
     if sdl_lib == "SDL": 
@@ -255,6 +257,7 @@
         return True
     else:
         context.Result("no")
+        restore_env(env, backup)
         return False
 
 def CheckOgg(context):


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

Reply via email to