Skip to content

Commit

Permalink
Do not duplicate files in the nupkg - fixes #851
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jun 1, 2015
1 parent 4cb5502 commit 4e2547a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 4 additions & 1 deletion src/Paket.Core/NupkgWriter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4e2547a

Please sign in to comment.