Skip to content

Commit

Permalink
Merge pull request #985 from mrinaldi/update_all_has_no_requirement
Browse files Browse the repository at this point in the history
Only creates requirements from lock file when updating a single package
  • Loading branch information
forki committed Aug 17, 2015
2 parents ebecaa9 + 89c9a2a commit d67bd53
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 d67bd53

Please sign in to comment.