Author: loonycyborg
Date: Fri Oct 17 00:55:24 2008
New Revision: 30219

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30219&view=rev
Log:
Fixed install with scons 0.96.93

Modified:
    trunk/scons/install.py

Modified: trunk/scons/install.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/scons/install.py?rev=30219&r1=30218&r2=30219&view=diff
==============================================================================
--- trunk/scons/install.py (original)
+++ trunk/scons/install.py Fri Oct 17 00:55:24 2008
@@ -71,16 +71,16 @@
 
 def InstallData(env, datadir, component, source, subdir = ""):
     installdir = Dir(env.subst(os.path.join(env["destdir"], 
env[datadir].lstrip("/"), subdir)))
-    sources = map(str, Flatten([env.subst(source)]))
+    sources = map(Entry, Flatten([env.subst(source)]))
     dirs = []
     for source in sources:
-        if os.path.exists(source):
-            if os.path.isfile(source):
+        if source.exists():
+            if source.isfile():
                 env.Alias("install-" + component, env.Install(installdir, 
source))
             else:
                 dirs.append(Dir(source))
     if dirs:
-        install = env.InstallFiltered(installdir, Dir(dirs))
+        install = env.InstallFiltered(installdir, map(Dir, dirs))
         AlwaysBuild(install)
         env.Alias("install-" + component, install)
 


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

Reply via email to