diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-05-29 09:50:52 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-05-29 09:50:52 -0500 |
commit | a11c009fcfe02fb7741bb7ce0c8ebaf2141ffd8d (patch) | |
tree | 46780e6f6e31ab9e9f4cc0b8b84659c92adf509d /src/rebar_state.erl | |
parent | a9a8c6a3debc76f4e0057652f94aea0f66320ecf (diff) | |
parent | 6c6940f860139cae0b719e0e1d7f8ed37171ba59 (diff) |
Merge pull request #474 from tsloughter/fix_plugin_install
fixing plugin install and paths
Diffstat (limited to 'src/rebar_state.erl')
-rw-r--r-- | src/rebar_state.erl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl index 18d6be7..96daf39 100644 --- a/src/rebar_state.erl +++ b/src/rebar_state.erl @@ -24,6 +24,7 @@ project_apps/1, project_apps/2, deps_to_build/1, deps_to_build/2, + all_plugin_deps/1, all_plugin_deps/2, update_all_plugin_deps/2, all_deps/1, all_deps/2, update_all_deps/2, namespace/1, namespace/2, @@ -55,6 +56,7 @@ project_apps = [] :: [rebar_app_info:t()], deps_to_build = [] :: [rebar_app_info:t()], + all_plugin_deps = [] :: [rebar_app_info:t()], all_deps = [] :: [rebar_app_info:t()], packages = undefined :: {rebar_dict(), rebar_digraph()} | undefined, @@ -347,6 +349,15 @@ all_deps(#state_t{all_deps=Apps}) -> all_deps(State=#state_t{}, NewApps) -> State#state_t{all_deps=NewApps}. +all_plugin_deps(#state_t{all_plugin_deps=Apps}) -> + Apps. + +all_plugin_deps(State=#state_t{}, NewApps) -> + State#state_t{all_plugin_deps=NewApps}. + +update_all_plugin_deps(State=#state_t{all_plugin_deps=Apps}, NewApps) -> + State#state_t{all_plugin_deps=Apps++NewApps}. + update_all_deps(State=#state_t{all_deps=Apps}, NewApps) -> State#state_t{all_deps=Apps++NewApps}. |