@joebigelow / wix-1 / commits / 80e6fdeb

Support creation of redundant file transfers

Rob Mensching committed Jul 21, 2018 at 07:39 UTC 80e6fdeb013c96dbde1a74e5f2973688fa1018d6
1 file changed +10 -9
src/WixToolset.Data/Bind/FileTransfer.cs
+10 -9
@@ -64,17 +64,18 @@ namespace WixToolset.Data.Bind
64
65 string fileLayoutFullPath = GetValidatedFullPath(sourceLineNumbers, destination);
66
67 - // if the current source path (where we know that the file already exists) and the resolved
68 - // path as dictated by the Directory table are not the same, then propagate the file. The
69 - // image that we create may have already been done by some other process other than the linker, so
70 - // there is no reason to copy the files to the resolved source if they are already there.
71 - if (String.Equals(sourceFullPath, fileLayoutFullPath, StringComparison.OrdinalIgnoreCase))
72 - {
73 - transfer = null;
74 - return false;
75 - }
67 + //// if the current source path (where we know that the file already exists) and the resolved
68 + //// path as dictated by the Directory table are not the same, then propagate the file. The
69 + //// image that we create may have already been done by some other process other than the linker, so
70 + //// there is no reason to copy the files to the resolved source if they are already there.
71 + //if (String.Equals(sourceFullPath, fileLayoutFullPath, StringComparison.OrdinalIgnoreCase))
72 + //{
73 + // transfer = null;
74 + // return false;
75 + //}
76
77 transfer = new FileTransfer(source, destination, move, type, sourceLineNumbers);
78 + transfer.Redundant = String.Equals(sourceFullPath, fileLayoutFullPath, StringComparison.OrdinalIgnoreCase);
79 return true;
80 }
81