diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-31 12:24:54 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-31 12:24:54 +0000 |
commit | 00881c0e78aa14be4e3c353dd08f82f7ae3812a1 (patch) | |
tree | 0be8205c9bde86f976ef6937941501cfc86e7caf /check_xref | |
parent | a39bc21538e580476fca3b5a9252dd360ea82147 (diff) | |
parent | 1c50d72ccdd59c94b1973093749528c899a26bf1 (diff) | |
download | rabbitmq-server-bug25428.tar.gz |
merge default into bug25428bug25428
Diffstat (limited to 'check_xref')
-rwxr-xr-x | check_xref | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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) -> |