From dd6a6f6ed096febc6613e30d90e36802ee06e125 Mon Sep 17 00:00:00 2001 From: Sergey Tihon Date: Thu, 11 Dec 2014 23:55:50 +0300 Subject: [PATCH] Version range simplifies as discussed here https://github.com/hmemcpy/Paket.VisualStudio/pull/13 --- src/Paket.Core/VersionRange.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Paket.Core/VersionRange.fs b/src/Paket.Core/VersionRange.fs index 877f93d226..ba1ce90ea7 100644 --- a/src/Paket.Core/VersionRange.fs +++ b/src/Paket.Core/VersionRange.fs @@ -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()