Skip to content

Commit

Permalink
Version range simplifies as discussed here
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-tihon committed Dec 11, 2014
1 parent 1e0173d commit dd6a6f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Paket.Core/VersionRange.fs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ type VersionRequirement =
match this.Range with
| Specific v -> v.ToString()
| OverrideAll v -> "== " + v.ToString()
| Minimum v -> ">= " + v.ToString()
| Minimum v ->
match v.ToString() with
| "0" -> ""
| x -> ">= " + x
| GreaterThan v -> "> " + v.ToString()
| Maximum v -> "<= " + v.ToString()
| LessThan v -> "< " + v.ToString()
Expand Down

0 comments on commit dd6a6f6

Please sign in to comment.