Browse Source

fix bug on foundapp could have bad match

pull/330/head
Tristan Sloughter 10 years ago
parent
commit
4fb9207d9a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/rebar_prv_install_deps.erl

+ 4
- 4
src/rebar_prv_install_deps.erl View File

@ -391,11 +391,11 @@ maybe_fetch(AppInfo, Upgrade, Seen, State) ->
{true, FoundApp} -> {true, FoundApp} ->
%% Preserve the state we created with overrides %% Preserve the state we created with overrides
AppState = rebar_app_info:state(AppInfo), 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), 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; end;
{true, AppInfo1} -> {true, AppInfo1} ->
%% Preserve the state we created with overrides %% Preserve the state we created with overrides

Loading…
Cancel
Save