ソースを参照

Add packages to code path after installation

Fix a bug where packages are not added to the code path after
installation. Dependent applications that build from source are not
affected by this issue since the build_apps function in
rebar_prv_compiler takes care of the code path changes for them. It is
only the precompiled packages that suffer from this issue.
pull/129/head
Kelly McLaughlin 10年前
コミット
507281f658
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      src/rebar_fetch.erl

+ 1
- 0
src/rebar_fetch.erl ファイルの表示

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

読み込み中…
キャンセル
保存