aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric <[email protected]>2013-01-31 15:26:40 -0800
committerEric <[email protected]>2013-01-31 15:26:40 -0800
commit882d4fbfe65dfc812d3de9d55647f9fb468be4b4 (patch)
treee79b07e0b588bdb6947c3ed52c36e1977e0fbab9
parent8b43038c86a2b4d7329434dab85dd5aac17fc9fe (diff)
downloadrelx-882d4fbfe65dfc812d3de9d55647f9fb468be4b4.tar.gz
relx-882d4fbfe65dfc812d3de9d55647f9fb468be4b4.tar.bz2
relx-882d4fbfe65dfc812d3de9d55647f9fb468be4b4.zip
fix formatting bigs in depsolver
-rw-r--r--src/rcl_depsolver.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rcl_depsolver.erl b/src/rcl_depsolver.erl
index e74cf3b..0cf8c88 100644
--- a/src/rcl_depsolver.erl
+++ b/src/rcl_depsolver.erl
@@ -471,12 +471,13 @@ add_constraint(SrcPkg, SrcVsn, PkgsConstraints, PkgConstraint) ->
{value, {PkgName, Constraints0}} ->
Constraints0
end,
- [{PkgName, [{PkgConstraint, {SrcPkg, SrcVsn}} | Constraints1]} |
- lists:keydelete(PkgName, 1, PkgsConstraints)].
+ [{PkgName, [{PkgConstraint, {SrcPkg, SrcVsn}} | Constraints1]}
+ | lists:keydelete(PkgName, 1, PkgsConstraints)].
%% @doc
%% Extend the currently active constraints correctly for the given constraints.
--spec extend_constraints(pkg_name(), vsn(), constraints(),constraints()) -> [{pkg_name(), constraints()}].
+-spec extend_constraints(pkg_name(), vsn(), constraints(),constraints()) ->
+ [{pkg_name(), constraints()}].
extend_constraints(SrcPkg, SrcVsn, ExistingConstraints0, NewConstraints) ->
lists:foldl(fun (Constraint, ExistingConstraints1) ->
add_constraint(SrcPkg, SrcVsn, ExistingConstraints1, Constraint)