'current_command' has to be stored in xconf
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/348d13b0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/348d13b0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/348d13b0 Branch: refs/heads/import Commit: 348d13b064723f790aa0d96f99eb87c58776619a Parents: ed88055 Author: Tuncer Ayaz <[email protected]> Authored: Wed Oct 16 12:29:54 2013 +0200 Committer: Tuncer Ayaz <[email protected]> Committed: Wed Oct 16 12:29:54 2013 +0200 ---------------------------------------------------------------------- src/rebar_core.erl | 2 +- src/rebar_deps.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/348d13b0/src/rebar_core.erl ---------------------------------------------------------------------- diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 4d50f4f..43f7c5c 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -181,7 +181,7 @@ skip_or_process_dir1(AppFile, ModuleSet, Config, CurrentCodePath, process_dir1(Dir, Command, DirSet, Config, CurrentCodePath, {DirModules, ModuleSetFile}) -> - Config0 = rebar_config:set(Config, current_command, Command), + Config0 = rebar_config:set_xconf(Config, current_command, Command), %% Get the list of modules for "any dir". This is a catch-all list %% of modules that are processed in addition to modules associated %% with this directory type. These any_dir modules are processed http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/348d13b0/src/rebar_deps.erl ---------------------------------------------------------------------- diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index 5e4f482..b57ce5d 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -72,7 +72,7 @@ preprocess(Config, _) -> %% deps-related can be executed on their directories. NonRawAvailableDeps = [D || D <- AvailableDeps, not D#dep.is_raw], - case rebar_config:get(Config, current_command, undefined) of + case rebar_config:get_xconf(Config, current_command, undefined) of 'update-deps' -> %% Skip ALL of the dep folders, we do this because we don't want %% any other calls to preprocess() for update-deps beyond the
