summaryrefslogtreecommitdiff
path: root/check_xref
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2013-05-16 12:13:19 +0100
committerTim Watson <tim@rabbitmq.com>2013-05-16 12:13:19 +0100
commit97494a765a8bef90b202357f04d96e4b39cc255e (patch)
treea1781c38e8073b2fff247e0589bace6e79171a63 /check_xref
parent08877efa78ca44cb0324d1d4242e01d4dab92933 (diff)
parentffeb160eda7a99d5d8935d1b2f90798a39782c13 (diff)
downloadrabbitmq-server-git-97494a765a8bef90b202357f04d96e4b39cc255e.tar.gz
merge bug25537 into stable
Diffstat (limited to 'check_xref')
-rwxr-xr-xcheck_xref14
1 files changed, 5 insertions, 9 deletions
diff --git a/check_xref b/check_xref
index e0c049f872..df01931157 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) ->