diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2013-01-24 12:03:28 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2013-01-24 12:03:28 +0000 |
| commit | c6c1a1fb609fbbc4ed2fada1dadff18c7900d9fe (patch) | |
| tree | a7d1fd3aad900b658872ea99031b07dca02a24f5 /check_xref | |
| parent | 4c987a1e8f80ae14d00fc952b30f59f282fd5f07 (diff) | |
| parent | 7d255f537200ecd16a7a706f5f773b6299606827 (diff) | |
| download | rabbitmq-server-git-c6c1a1fb609fbbc4ed2fada1dadff18c7900d9fe.tar.gz | |
stable to default
Diffstat (limited to 'check_xref')
| -rwxr-xr-x | check_xref | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/check_xref b/check_xref index 8f65f3b12b..ea0102ee45 100755 --- a/check_xref +++ b/check_xref @@ -50,6 +50,7 @@ shutdown(Rc, LibDir) -> check(Cwd, PluginsDir, LibDir, Checks) -> {ok, Plugins} = file:list_dir(PluginsDir), ok = file:make_dir(LibDir), + put({?MODULE, third_party}, []), [begin Source = filename:join(PluginsDir, Plugin), Target = filename:join(LibDir, Plugin), @@ -162,7 +163,8 @@ filters() -> filter_chain(FnChain) -> fun(AnalysisResult) -> - lists:foldl(fun(F, false) -> F(cleanup(AnalysisResult)); + Result = cleanup(AnalysisResult), + lists:foldl(fun(F, false) -> F(Result); (_F, true) -> true end, false, FnChain) end. @@ -267,14 +269,8 @@ source_file(M) -> store_third_party(App) -> {ok, AppConfig} = application:get_all_key(App), - case get({?MODULE, third_party}) of - undefined -> - put({?MODULE, third_party}, - proplists:get_value(modules, AppConfig)); - Modules -> - put({?MODULE, third_party}, - proplists:get_value(modules, AppConfig) ++ Modules) - end. + AppModules = proplists:get_value(modules, AppConfig), + put({?MODULE, third_party}, AppModules ++ get({?MODULE, third_party})). %% TODO: this ought not to be maintained in such a fashion external_dependency(Path) -> |
