Browse Source

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.
Loïc Hoguin 5 years ago
parent
commit
643ea11a1a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      core/deps.mk

+ 5 - 1
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";