summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpvmart <pvmart@users.noreply.github.com>2015-07-24 15:19:16 +0800
committerpvmart <pvmart@users.noreply.github.com>2015-07-24 15:19:16 +0800
commita757b68e280e7f7b47f98b6be3a8c68cbced18ed (patch)
tree6399be5b705e746981ee7d6a5faaa9a619c3b702
parent16bbb4744be3efea8993cb03071fcafb0085058b (diff)
Fix plugin upgrade when plugin mentioned only by its name
-rw-r--r--src/rebar_prv_plugins_upgrade.erl5
1 files changed, 4 insertions, 1 deletions
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),