From 643ea11a1a72ab85d7fe61d918ebf233f04bbd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 20 Jun 2019 14:56:54 +0200 Subject: Small correction to semver conversion for hex Allow a lack of space in the front. This will of course need to be handled better eventually. --- core/deps.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/deps.mk b/core/deps.mk index 6e463ac..2984aa2 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -326,7 +326,11 @@ define dep_autopatch_rebar.erl end end, SemVsn = fun - ("~> " ++ S) -> + ("~>" ++ S0) -> + S = case S0 of + " " ++ S1 -> S1; + _ -> S0 + end, case length([ok || $$. <- S]) of 0 -> S ++ ".0.0"; 1 -> S ++ ".0"; -- cgit v1.2.3