diff options
-rw-r--r-- | src/rebar_prv_install_deps.erl | 15 |
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. |