aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-06-20 14:56:54 +0200
committerLoïc Hoguin <[email protected]>2019-06-20 14:56:54 +0200
commit643ea11a1a72ab85d7fe61d918ebf233f04bbd8d (patch)
treee337d221d643675052234e4df50777e4d8e3405c
parent95917dbe67558b1317a2c946dff3dd45ebdbea7c (diff)
downloaderlang.mk-643ea11a1a72ab85d7fe61d918ebf233f04bbd8d.tar.gz
erlang.mk-643ea11a1a72ab85d7fe61d918ebf233f04bbd8d.tar.bz2
erlang.mk-643ea11a1a72ab85d7fe61d918ebf233f04bbd8d.zip
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.
-rw-r--r--core/deps.mk6
1 files changed, 5 insertions, 1 deletions
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";