Browse Source

Merge pull request #129 from kellymclaughlin/add-pkgs-to-code-path

Add packages to code path after installation
pull/133/head
Tristan Sloughter 10 years ago
parent
commit
038d721f90
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      src/rebar_fetch.erl
  2. +1
    -1
      test/mock_pkg_resource.erl

+ 1
- 0
src/rebar_fetch.erl View File

@ -46,6 +46,7 @@ download_source(AppDir, Source) ->
code:del_path(filename:absname(filename:join(AppDir1, "ebin"))),
ec_file:remove(filename:absname(AppDir1), [recursive]),
ok = ec_file:copy(FromDir, filename:absname(AppDir1), [recursive]),
true = code:add_patha(filename:join(AppDir1, "ebin")),
true
end
catch

+ 1
- 1
test/mock_pkg_resource.erl View File

@ -78,7 +78,7 @@ mock_download(Opts) ->
App = binary_to_list(AppBin),
filelib:ensure_dir(Dir),
AppDeps = proplists:get_value({App,Vsn}, Deps, []),
{ok, AppInfo} = rebar_test_utils:create_app(
{ok, AppInfo} = rebar_test_utils:create_empty_app(
Dir, App, Vsn,
[element(1,D) || D <- AppDeps]
),

Loading…
Cancel
Save