Skip to content

Commit

Permalink
Only creates requirements from lock file when updating a single package
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinaldi committed Aug 14, 2015
1 parent ebecaa9 commit 89c9a2a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Paket.Core/UpdateProcess.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89c9a2a

Please sign in to comment.