Author: loonycyborg
Date: Sat Apr 18 18:56:14 2009
New Revision: 35019

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35019&view=rev
Log:
scons wasn't installing locales and translations if those dirs didn't exist at 
SConscript parse time. Fixed.

(cherry picked from revision 34984(trunk))

Modified:
    branches/1.6/scons/install.py

Modified: branches/1.6/scons/install.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/scons/install.py?rev=35019&r1=35018&r2=35019&view=diff
==============================================================================
--- branches/1.6/scons/install.py (original)
+++ branches/1.6/scons/install.py Sat Apr 18 18:56:14 2009
@@ -88,11 +88,11 @@
     sources = map(Entry, Flatten([source]))
     dirs = []
     for source in sources:
-        if source.exists():
-            if source.isfile():
+        if isinstance(source, SCons.Node.FS.Dir) or source.isdir():
+            dirs.append(source)
+        else:
+            if source.exists():
                 env.Alias("install-" + component, env.Install(installdir, 
source))
-            else:
-                dirs.append(Dir(source))
     if dirs:
         if len(dirs) == 1:
             install = env.InstallFiltered(installdir.path, dirs[0].path)


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

Reply via email to