Skip to content

Commit

Permalink
Fix smart install when we add a pinned version - fixes #777
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Apr 14, 2015
1 parent 8dcb9a1 commit e4aca73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.41.3 - 14.04.2015
* BUGFIX: Fix smart install when we add a pinned version - https://github.com/fsprojects/Paket/issues/777

#### 0.41.2 - 14.04.2015
* Trace NuGet server response in verbose mode - https://github.com/fsprojects/Paket/issues/775

Expand Down
8 changes: 6 additions & 2 deletions src/Paket.Core/DependencyChangeDetection.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ let findChangesInDependenciesFile(dependenciesFile:DependenciesFile,lockFile:Loc

let added =
dependenciesFile.DirectDependencies
|> Seq.map (fun d -> NormalizedPackageName d.Key)
|> Seq.filter (lockFile.ResolvedPackages.ContainsKey >> not)
|> Seq.map (fun d -> NormalizedPackageName d.Key,d.Value)
|> Seq.filter (fun (name,vr) ->
match lockFile.ResolvedPackages.TryFind name with
| Some p -> not (vr.IsInRange p.Version)
| _ -> true)
|> Seq.map fst
|> Set.ofSeq

let modified =
Expand Down

0 comments on commit e4aca73

Please sign in to comment.