From d8e1bfda952cc6396368697b35ebca5b1fdd2e78 Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Fri, 24 Jun 2016 13:06:32 +0200 Subject: [PATCH] Add --ignore-checks parameter for restore - references #1750 --- src/Paket.Core/RestoreProcess.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paket.Core/RestoreProcess.fs b/src/Paket.Core/RestoreProcess.fs index 99f484c5ef..2e91138d1d 100644 --- a/src/Paket.Core/RestoreProcess.fs +++ b/src/Paket.Core/RestoreProcess.fs @@ -127,9 +127,9 @@ let Restore(dependenciesFileName,force,group,referencesFileNames,ignoreChecks) = let localFile = LocalFile.readFile localFileName.FullName |> Chessie.ErrorHandling.Trial.returnOrFail - LocalFile.overrideLockFile localFile lockFile,localFile,false + LocalFile.overrideLockFile localFile lockFile,localFile,true - if not (hasLocalFile || ignoreChecks) then + if not hasLocalFile && not ignoreChecks then let hasAnyChanges,_,_,_ = DependencyChangeDetection.GetChanges(dependenciesFile,lockFile,false) if hasAnyChanges then