diff --git a/.semver b/.semver index 03a7b4c..3435259 100644 --- a/.semver +++ b/.semver @@ -1,6 +1,6 @@ --- :major: 1 :minor: 13 -:patch: 4 +:patch: 5 :special: '' :metadata: '' diff --git a/src/SolutionInfo.cs b/src/SolutionInfo.cs index 61286cc..b6ee969 100644 --- a/src/SolutionInfo.cs +++ b/src/SolutionInfo.cs @@ -1,6 +1,6 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyVersion("1.13.4")] -[assembly: AssemblyFileVersion("1.13.4")] -[assembly: AssemblyInformationalVersion("1.13.4.000000")] +[assembly: AssemblyVersion("1.13.5")] +[assembly: AssemblyFileVersion("1.13.5")] +[assembly: AssemblyInformationalVersion("1.13.5.000000")] diff --git a/src/Zip.Shared/ZipFile.Read.cs b/src/Zip.Shared/ZipFile.Read.cs index d32ba58..98227d4 100644 --- a/src/Zip.Shared/ZipFile.Read.cs +++ b/src/Zip.Shared/ZipFile.Read.cs @@ -783,9 +783,12 @@ private static void ReadIntoInstance_Orig(ZipFile zf) if (zf.Verbose) zf.StatusMessageTextWriter.WriteLine(" {0}", e.FileName); - zf._entries.Add(e.FileName,e); - if (!zf._entriesInsensitive.ContainsKey(e.FileName)) - zf._entriesInsensitive.Add(e.FileName,e); + if (!(zf.IgnoreDuplicateFiles && zf._entries.ContainsKey(e.FileName))) + { + zf._entries.Add(e.FileName,e); + if (!zf._entriesInsensitive.ContainsKey(e.FileName)) + zf._entriesInsensitive.Add(e.FileName,e); + } firstEntry = false; }