diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-02-06 18:00:24 -0600 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-02-06 18:00:24 -0600 |
commit | 038d721f90952f0eabda6b4e5333a0ec35a255dd (patch) | |
tree | d3532d3ae8c9efae03b9ef2e384c7580561b3f92 | |
parent | 62581cfcc33b5f6787851d65b97a8fe8c086b53d (diff) | |
parent | 29039bece6f1733099eb6b4eea67f47e37bc24e0 (diff) |
Merge pull request #129 from kellymclaughlin/add-pkgs-to-code-path
Add packages to code path after installation
-rw-r--r-- | src/rebar_fetch.erl | 1 | ||||
-rw-r--r-- | test/mock_pkg_resource.erl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl index eac2d02..088a49a 100644 --- a/src/rebar_fetch.erl +++ b/src/rebar_fetch.erl @@ -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 diff --git a/test/mock_pkg_resource.erl b/test/mock_pkg_resource.erl index 502e184..ab2c0d3 100644 --- a/test/mock_pkg_resource.erl +++ b/test/mock_pkg_resource.erl @@ -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] ), |