aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_depsolver.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-10-18 12:20:46 -0500
committerTristan Sloughter <[email protected]>2014-10-18 12:20:46 -0500
commit11fa012cdaea031c1fea34bcad49b6c6cbe2eedf (patch)
treea7067fd65854a4ed63fbc90ac8b514ccfb735d6d /src/rlx_depsolver.erl
parent845c0e766ea0e7b9585a8f6f7a5372f24332f0f7 (diff)
downloadrelx-11fa012cdaea031c1fea34bcad49b6c6cbe2eedf.tar.gz
relx-11fa012cdaea031c1fea34bcad49b6c6cbe2eedf.tar.bz2
relx-11fa012cdaea031c1fea34bcad49b6c6cbe2eedf.zip
fix function defs for function that take vsn(), which can be an atom
Diffstat (limited to 'src/rlx_depsolver.erl')
-rw-r--r--src/rlx_depsolver.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_depsolver.erl b/src/rlx_depsolver.erl
index f9dc73d..fd26145 100644
--- a/src/rlx_depsolver.erl
+++ b/src/rlx_depsolver.erl
@@ -269,7 +269,7 @@ parse_version(RawVsn)
erlang:is_binary(RawVsn) ->
ec_semver:parse(RawVsn);
parse_version(Vsn)
- when erlang:is_tuple(Vsn) ->
+ when erlang:is_tuple(Vsn) ; erlang:is_atom(Vsn) ->
Vsn.
%% @doc check that a specified constraint is a valid constraint.
@@ -351,6 +351,8 @@ format_culprits(Culprits) ->
%% @doc A formatted version tuple
-spec format_version(vsn()) -> iolist().
+format_version('NO_VSN') ->
+ "";
format_version(Version) ->
rlx_depsolver_culprit:format_version(Version).