diff options
-rw-r--r-- | src/rebar_fetch.erl | 7 | ||||
-rw-r--r-- | test/mock_pkg_resource.erl | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl index 964ccb3..088a49a 100644 --- a/src/rebar_fetch.erl +++ b/src/rebar_fetch.erl @@ -46,12 +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]), - case ec_file:exists(filename:join(AppDir1, "ebin")) of - true -> - true = code:add_patha(filename:join(AppDir1, "ebin")); - false -> - ok - end, + 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] ), |