소스 검색

Ensure package ebin directory exists prior to adding to code path

pull/129/head
Kelly McLaughlin 10 년 전
부모
커밋
e3ff657dc2
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. +6
    -1
      src/rebar_fetch.erl

+ 6
- 1
src/rebar_fetch.erl 파일 보기

@ -46,7 +46,12 @@ 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")),
case ec_file:exists(filename:join(AppDir1, "ebin")) of
true ->
true = code:add_patha(filename:join(AppDir1, "ebin"));
false ->
ok
end,
true
end
catch

불러오는 중...
취소
저장