Skip to content

Commit

Permalink
Don't rewrite the version file if not needed - fixes #440, fixes #407
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Dec 9, 2014
1 parent 633c1fb commit 854b332
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Paket.Core/RemoteDownload.fs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ let DownloadSourceFile(rootPath, source:ModuleResolver.ResolvedSourceFile) =
else
tracefn "Downloading %s to %s" (source.ToString()) destination

CleanDir (destination |> Path.GetDirectoryName)
destination |> Path.GetDirectoryName |> CleanDir

do! downloadRemoteFiles(source,destination)
File.WriteAllText(versionFile.FullName, source.Commit)
if not (versionFile.Exists && source.Commit = File.ReadAllText(versionFile.FullName)) then
File.WriteAllText(versionFile.FullName, source.Commit)
}

0 comments on commit 854b332

Please sign in to comment.