diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-07-24 20:37:24 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-07-24 20:37:24 -0500 |
commit | 5cbc22c45d09f49d3867d71f4aac78326b9a8493 (patch) | |
tree | 6399be5b705e746981ee7d6a5faaa9a619c3b702 | |
parent | 16bbb4744be3efea8993cb03071fcafb0085058b (diff) | |
parent | a757b68e280e7f7b47f98b6be3a8c68cbced18ed (diff) |
Merge pull request #640 from pvmart/master
Fix plugin upgrade when plugin mentioned only by its name
-rw-r--r-- | src/rebar_prv_plugins_upgrade.erl | 5 |
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), |