From a757b68e280e7f7b47f98b6be3a8c68cbced18ed Mon Sep 17 00:00:00 2001 From: pvmart Date: Fri, 24 Jul 2015 15:19:16 +0800 Subject: Fix plugin upgrade when plugin mentioned only by its name --- src/rebar_prv_plugins_upgrade.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rebar_prv_plugins_upgrade.erl b/src/rebar_prv_plugins_upgrade.erl index 02c185f..f67b7dc 100644 --- a/src/rebar_prv_plugins_upgrade.erl +++ b/src/rebar_prv_plugins_upgrade.erl @@ -97,7 +97,10 @@ find(Plugin, [Plugin1 | Plugins]) when is_tuple(Plugin1) -> Plugin1; false -> find(Plugin, Plugins) - end. + end; +find(Plugin, [_Plugin | Plugins]) -> + find(Plugin, Plugins). + build_plugin(AppInfo, Apps, State) -> Providers = rebar_state:providers(State), -- cgit v1.1