From 268713c5d7642bf2911aa6019abe54b776c5993c Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 2 Mar 2016 12:53:54 -0600 Subject: include project_plugins in plugins that can be upgraded --- src/rebar_prv_plugins_upgrade.erl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/rebar_prv_plugins_upgrade.erl b/src/rebar_prv_plugins_upgrade.erl index 87f20df..03521c7 100644 --- a/src/rebar_prv_plugins_upgrade.erl +++ b/src/rebar_prv_plugins_upgrade.erl @@ -78,13 +78,14 @@ upgrade(Plugin, State) -> find_plugin(Plugin, Profiles, State) -> ec_lists:search(fun(Profile) -> - Plugins = rebar_state:get(State, {plugins, Profile}, []), - case rebar_utils:tup_find(list_to_atom(Plugin), Plugins) of - false -> - not_found; - P -> - {ok, P} - end + Plugins = rebar_state:get(State, {plugins, Profile}, []) ++ + rebar_state:get(State, {project_plugins, Profile}, []), + case rebar_utils:tup_find(list_to_atom(Plugin), Plugins) of + false -> + not_found; + P -> + {ok, P} + end end, Profiles). build_plugin(AppInfo, Apps, State) -> -- cgit v1.1