diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-07-26 18:54:05 +0100 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-07-26 18:54:05 +0100 |
commit | a415140415e4f48de85f754e10443745a72fad4f (patch) | |
tree | c3e08623fa2d1f18417563885be05acb1aa17083 /src/rebar_prv_plugins_upgrade.erl | |
parent | e2b4dcdb4c68c8142aba9835a5ee4c644aef4e9b (diff) | |
parent | e64671686fd3d6fbec3077de29c1f5efc059388b (diff) |
Merge pull request #650 from tsloughter/upgrades_git_pkg_fix
fix upgrade of newly added pkg dep from scm locked dep
Diffstat (limited to 'src/rebar_prv_plugins_upgrade.erl')
-rw-r--r-- | src/rebar_prv_plugins_upgrade.erl | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/rebar_prv_plugins_upgrade.erl b/src/rebar_prv_plugins_upgrade.erl index f67b7dc..dfc9990 100644 --- a/src/rebar_prv_plugins_upgrade.erl +++ b/src/rebar_prv_plugins_upgrade.erl @@ -79,7 +79,7 @@ upgrade(Plugin, State) -> find_plugin(Plugin, Profiles, State) -> ec_lists:search(fun(Profile) -> Plugins = rebar_state:get(State, {plugins, Profile}, []), - case find(list_to_atom(Plugin), Plugins) of + case rebar_utils:tup_find(list_to_atom(Plugin), Plugins) of false -> not_found; P -> @@ -87,21 +87,6 @@ find_plugin(Plugin, Profiles, State) -> end end, Profiles). -find(_Plugin, []) -> - false; -find(Plugin, [Plugin | _Plugins]) -> - Plugin; -find(Plugin, [Plugin1 | Plugins]) when is_tuple(Plugin1) -> - case element(1, Plugin1) =:= Plugin of - true -> - Plugin1; - false -> - find(Plugin, Plugins) - end; -find(Plugin, [_Plugin | Plugins]) -> - find(Plugin, Plugins). - - build_plugin(AppInfo, Apps, State) -> Providers = rebar_state:providers(State), AppDir = rebar_app_info:dir(AppInfo), |