build: normalise paths in unique source checking
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 01:11:21 +0000 (11:11 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 04:36:54 +0000 (14:36 +1000)
buildtools/wafsamba/samba_deps.py

index eb66e448f9bd76955660343f9c19f6f8231da656..e0c76e48ec743d8c5e6a710633661a89c54ba727 100644 (file)
@@ -240,7 +240,7 @@ def check_duplicate_sources(bld, tgt_list):
 
     for t in tgt_list:
         obj_sources = getattr(t, 'source', '')
-        tpath = os_path_relpath(t.path.abspath(bld.env), t.env.BUILD_DIRECTORY + '/default')
+        tpath = os.path.normpath(os_path_relpath(t.path.abspath(bld.env), t.env.BUILD_DIRECTORY + '/default'))
         obj_sources = bld.SUBDIR(tpath, obj_sources)
         t.samba_source_set = set(TO_LIST(obj_sources))