summaryrefslogtreecommitdiff
path: root/src/rebar_prv_install_deps.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-04-11 19:13:46 -0500
committerTristan Sloughter <t@crashfast.com>2015-04-11 19:13:46 -0500
commit4fb9207d9a7bd4e8d227c05ba2eb6089ca98322c (patch)
treeb36050b841d42538a10f6971341e7c1defc5cbca /src/rebar_prv_install_deps.erl
parentd317869a3e3234510d3b2edc756caeff4cc1d515 (diff)
fix bug on foundapp could have bad match
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r--src/rebar_prv_install_deps.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index bf20a2e..c535b4d 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -391,11 +391,11 @@ maybe_fetch(AppInfo, Upgrade, Seen, State) ->
{true, FoundApp} ->
%% Preserve the state we created with overrides
AppState = rebar_app_info:state(AppInfo),
- FoundApp = rebar_app_info:state(FoundApp, AppState),
- ?INFO("Linking ~s to ~s", [rebar_app_info:dir(FoundApp), AppDir]),
+ FoundApp1 = rebar_app_info:state(FoundApp, AppState),
+ ?INFO("Linking ~s to ~s", [rebar_app_info:dir(FoundApp1), AppDir]),
filelib:ensure_dir(AppDir),
- rebar_file_utils:symlink_or_copy(rebar_app_info:dir(FoundApp), AppDir),
- {true, AppInfo}
+ rebar_file_utils:symlink_or_copy(rebar_app_info:dir(FoundApp1), AppDir),
+ {true, FoundApp1}
end;
{true, AppInfo1} ->
%% Preserve the state we created with overrides