Restore ability to specify deps_dir on the command line

It was previously possible to run `rebar compile deps_dir=/path/to/deps`,
but as of 70d27c5720, it was nixed.
This commit is contained in:
Yurii Rashkovskii 2012-09-12 00:39:52 -07:00 committed by Tuncer Ayaz
parent 22b703efa8
commit 9a57e06015

View file

@ -185,7 +185,8 @@ setup_env(Config) ->
%% Sets a default if root config has no deps_dir set %% Sets a default if root config has no deps_dir set
set_shared_deps_dir(Config, []) -> set_shared_deps_dir(Config, []) ->
rebar_config:set_xconf(Config, deps_dir, rebar_config:set_xconf(Config, deps_dir,
rebar_config:get_local(Config, deps_dir, "deps")); rebar_config:get_local(Config, deps_dir,
rebar_config:get_global(Config, deps_dir, "deps")));
set_shared_deps_dir(Config, _DepsDir) -> set_shared_deps_dir(Config, _DepsDir) ->
Config. Config.