From 80e6fdeb013c96dbde1a74e5f2973688fa1018d6 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 21 Jul 2018 07:39:38 -0700 Subject: Support creation of redundant file transfers --- src/WixToolset.Data/Bind/FileTransfer.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/WixToolset.Data/Bind/FileTransfer.cs b/src/WixToolset.Data/Bind/FileTransfer.cs index 088146d1..046883d8 100644 --- a/src/WixToolset.Data/Bind/FileTransfer.cs +++ b/src/WixToolset.Data/Bind/FileTransfer.cs @@ -64,17 +64,18 @@ namespace WixToolset.Data.Bind string fileLayoutFullPath = GetValidatedFullPath(sourceLineNumbers, destination); - // if the current source path (where we know that the file already exists) and the resolved - // path as dictated by the Directory table are not the same, then propagate the file. The - // image that we create may have already been done by some other process other than the linker, so - // there is no reason to copy the files to the resolved source if they are already there. - if (String.Equals(sourceFullPath, fileLayoutFullPath, StringComparison.OrdinalIgnoreCase)) - { - transfer = null; - return false; - } + //// if the current source path (where we know that the file already exists) and the resolved + //// path as dictated by the Directory table are not the same, then propagate the file. The + //// image that we create may have already been done by some other process other than the linker, so + //// there is no reason to copy the files to the resolved source if they are already there. + //if (String.Equals(sourceFullPath, fileLayoutFullPath, StringComparison.OrdinalIgnoreCase)) + //{ + // transfer = null; + // return false; + //} transfer = new FileTransfer(source, destination, move, type, sourceLineNumbers); + transfer.Redundant = String.Equals(sourceFullPath, fileLayoutFullPath, StringComparison.OrdinalIgnoreCase); return true; } -- cgit v1.2.3-55-g6feb