From 4e2547a41c0ae05d9e72baaaa4a02d8bc94c0a5c Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Mon, 1 Jun 2015 15:00:16 +0200 Subject: [PATCH] Do not duplicate files in the nupkg - fixes #851 --- RELEASE_NOTES.md | 3 +++ src/Paket.Core/NupkgWriter.fs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 40395062d8..31f67e7154 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +#### 1.9.2 - 01.06.2015 +* Do not duplicate files in the nupkg - https://github.com/fsprojects/Paket/issues/851 + #### 1.9.1 - 01.06.2015 * Pack command reuses project version if directly given - https://github.com/fsprojects/Paket/issues/837 diff --git a/src/Paket.Core/NupkgWriter.fs b/src/Paket.Core/NupkgWriter.fs index ca19b13017..64aee01a45 100644 --- a/src/Paket.Core/NupkgWriter.fs +++ b/src/Paket.Core/NupkgWriter.fs @@ -242,7 +242,10 @@ let Write (core : CompleteCoreInfo) optional workingDir outputDir = for path, writer in writeNupkg core optional do addEntry zipFile path writer - contentTypeDoc (Seq.toList entries) + entries + |> Seq.distinct + |> Seq.toList + |> contentTypeDoc |> xDocWriter |> addEntry zipFile contentTypePath