summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-12-06 19:58:24 -0600
committerTristan Sloughter <t@crashfast.com>2014-12-06 20:11:45 -0600
commitb849b36b5ecabe83d9c72f4370d7bc44c57f84e6 (patch)
tree395e3fd94c2314bf69428c9f2065937af358bdcc /src
parentf77cbb7f508345c1352b957d75e0e350725f707c (diff)
only add lock if default profile
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_install_deps.erl15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 20e7808..5375f4b 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -174,11 +174,16 @@ update_pkg_deps(Pkgs, Packages, Update, Seen, State) ->
maybe_lock(AppInfo, Seen, State) ->
Name = rebar_app_info:name(AppInfo),
- case sets:is_element(Name, Seen) of
- false ->
- {sets:add_element(Name, Seen),
- rebar_state:lock(State, AppInfo)};
- true ->
+ case rebar_state:current_profile(State) of
+ default ->
+ case sets:is_element(Name, Seen) of
+ false ->
+ {sets:add_element(Name, Seen),
+ rebar_state:lock(State, AppInfo)};
+ true ->
+ {Seen, State}
+ end;
+ _ ->
{Seen, State}
end.