Skip to content

Commit

Permalink
Use Max strategy for paket outdated --ingore-constraints - references f…
Browse files Browse the repository at this point in the history
  • Loading branch information
theimowski committed Dec 21, 2014
1 parent b792cee commit 7dec368
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Paket.Core/FindOutdated.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ let FindOutdated(dependenciesFileName,strict,includingPrereleases) =
loadedFile.Packages
|> List.map (fun p ->
let v = p.VersionRequirement
let requirement =
let requirement,strategy =
match strict,includingPrereleases with
| true,true -> VersionRequirement.NoRestriction
| true,false -> v
| true,true -> VersionRequirement.NoRestriction, p.ResolverStrategy
| true,false -> v, p.ResolverStrategy
| false,true ->
match v with
| VersionRequirement(v,_) -> VersionRequirement(v,PreReleaseStatus.All)
| false,false -> VersionRequirement.AllReleases
{ p with VersionRequirement = requirement})
| VersionRequirement(v,_) -> VersionRequirement(v,PreReleaseStatus.All), Max
| false,false -> VersionRequirement.AllReleases, Max
{ p with VersionRequirement = requirement; ResolverStrategy = strategy})

DependenciesFile(loadedFile.FileName,loadedFile.Options,loadedFile.Sources,newPackages,loadedFile.RemoteFiles)

Expand Down

0 comments on commit 7dec368

Please sign in to comment.