From 89c9a2a592591057d935d81a2a7222269f8440b0 Mon Sep 17 00:00:00 2001 From: Marcio Rinaldi Date: Fri, 14 Aug 2015 09:36:44 -0300 Subject: [PATCH] Only creates requirements from lock file when updating a single package --- src/Paket.Core/UpdateProcess.fs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Paket.Core/UpdateProcess.fs b/src/Paket.Core/UpdateProcess.fs index de4ae7ccaa..2ca38c87e9 100644 --- a/src/Paket.Core/UpdateProcess.fs +++ b/src/Paket.Core/UpdateProcess.fs @@ -104,15 +104,13 @@ let SelectiveUpdate(dependenciesFile : DependenciesFile, updateAll, exclude, for else LockFile.LoadFrom lockFileName.FullName - let excludePackages = + let requirements = match exclude with - | Some e -> [e] + | Some e -> + oldLockFile.ResolvedPackages + |> createPackageRequirements [e] | None -> [] - let requirements = - oldLockFile.ResolvedPackages - |> createPackageRequirements excludePackages - let lockFile = selectiveUpdate (fun d p -> d.Resolve(force, p, requirements)) oldLockFile dependenciesFile updateAll exclude lockFile.Save() lockFile