From d529525a1e331f3ef9ec2707791c99bd78fdd82f Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 30 May 2020 14:53:05 -0700 Subject: Basic patching support --- .../Bind/GetFileFacadesCommand.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs index 2844f797..55171da4 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs @@ -26,28 +26,26 @@ namespace WixToolset.Core.WindowsInstaller.Bind var facades = new List(); var assemblyFile = this.Section.Tuples.OfType().ToDictionary(t => t.Id.Id); - //var wixFiles = this.Section.Tuples.OfType().ToDictionary(t => t.Id.Id); //var deltaPatchFiles = this.Section.Tuples.OfType().ToDictionary(t => t.Id.Id); foreach (var file in this.Section.Tuples.OfType()) { - //var wixFile = wixFiles[file.Id.Id]; + assemblyFile.TryGetValue(file.Id.Id, out var assembly); //deltaPatchFiles.TryGetValue(file.Id.Id, out var deltaPatchFile); - //facades.Add(new FileFacade(file, wixFile, deltaPatchFile)); - - assemblyFile.TryGetValue(file.Id.Id, out var assembly); - facades.Add(new FileFacade(file, assembly)); + //facades.Add(new FileFacade(file, wixFile, deltaPatchFile)); } - //this.ResolveDeltaPatchSymbolPaths(deltaPatchFiles, facades); +#if TODO_PATCHING_DELTA + this.ResolveDeltaPatchSymbolPaths(deltaPatchFiles, facades); +#endif this.FileFacades = facades; } -#if FIX_THIS +#if TODO_PATCHING_DELTA /// /// Merge data from the WixPatchSymbolPaths rows into the WixDeltaPatchFile rows. /// @@ -132,7 +130,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind file.SymbolPaths = String.Concat(file.SymbolPaths, ";", row.SymbolPaths); } -#if TODO_PATCHING Field field = row.Fields[2]; if (null != field.PreviousData) { @@ -145,7 +142,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind file.PreviousSymbols = String.Concat(file.PreviousSymbols, ";", field.PreviousData); } } -#endif } #endif } -- cgit v1.2.3-55-g6feb