summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2016-03-02 12:53:54 -0600
committerTristan Sloughter <t@crashfast.com>2016-03-02 12:54:15 -0600
commit268713c5d7642bf2911aa6019abe54b776c5993c (patch)
tree879f35f4d9b2ea53c0bdf28472ecffed1b99bfbb /src
parent3a27eb6f433625618713eca0358bf8138548e4a6 (diff)
include project_plugins in plugins that can be upgraded
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_plugins_upgrade.erl15
1 files changed, 8 insertions, 7 deletions
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) ->