Skip to content

Commit

Permalink
Open package using FileStream - relates to #761
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Apr 9, 2015
1 parent e8ae3a2 commit 478025c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### 0.39.3 - 10.04.2015
#### 0.39.4 - 10.04.2015
* Try to fix dates in Nuget packages - https://github.com/fsprojects/Paket/issues/761

#### 0.39.2 - 09.04.2015
Expand Down
3 changes: 2 additions & 1 deletion src/Paket.Core/NuGetV2.fs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ let inline isExtracted fileName =
|> Seq.exists (fun f -> f.FullName <> fi.FullName)

let fixDatesInArchive fileName =
use archive = ZipFile.Open(fileName,ZipArchiveMode.Update)
use zipToOpen = new FileStream(fileName, FileMode.Open)
use archive = new ZipArchive(zipToOpen, ZipArchiveMode.Update)
for e in archive.Entries do
try
let d = e.LastWriteTime
Expand Down

0 comments on commit 478025c

Please sign in to comment.