Explorar el Código

Ensure package ebin directory exists prior to adding to code path

pull/129/head
Kelly McLaughlin hace 10 años
padre
commit
e3ff657dc2
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. +6
    -1
      src/rebar_fetch.erl

+ 6
- 1
src/rebar_fetch.erl Ver fichero

@ -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

Cargando…
Cancelar
Guardar