Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check that target source file exists - references #440
  • Loading branch information
forki committed Dec 9, 2014
commit 633c1fb20173dc49ca403049982c586636fabf39
4 changes: 2 additions & 2 deletions src/Paket.Core/RemoteDownload.fs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ let DownloadSourceFile(rootPath, source:ModuleResolver.ResolvedSourceFile) =
let destination = Path.Combine(rootPath, source.FilePath)

let isInRightVersion =
if not <| versionFile.Exists then false
else source.Commit = File.ReadAllText(versionFile.FullName)
versionFile.Exists && File.Exists destination &&
source.Commit = File.ReadAllText(versionFile.FullName)

if isInRightVersion then
verbosefn "Sourcefile %s is already there." (source.ToString())
Expand Down