Explorar el Código

Use new rebar_config API to avoid having to actually delete/change the config any

pull/3/head
Dave Smith hace 15 años
padre
commit
a46be8cec1
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  1. +2
    -6
      src/rebar_subdirs.erl

+ 2
- 6
src/rebar_subdirs.erl Ver fichero

@ -35,10 +35,6 @@
preprocess(Config, _) -> preprocess(Config, _) ->
%% Get the list of subdirs specified in the config (if any). %% Get the list of subdirs specified in the config (if any).
Cwd = rebar_utils:get_cwd(), Cwd = rebar_utils:get_cwd(),
Subdirs = [filename:join(Cwd, Dir) || Dir <- rebar_config:get(Config, sub_dirs, [])],
%% Filter out the subdirs from the config so that processing in the
%% subdirs doesn't try to reprocess
Config2 = rebar_config:delete(Config, sub_dirs),
{ok, Config2, Subdirs}.
Subdirs = [filename:join(Cwd, Dir) || Dir <- rebar_config:get_local(Config, sub_dirs, [])],
{ok, Config, Subdirs}.

Cargando…
Cancelar
Guardar