summaryrefslogtreecommitdiff
path: root/check_xref
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2013-02-21 13:44:59 +0000
committerEmile Joubert <emile@rabbitmq.com>2013-02-21 13:44:59 +0000
commit4a99be7e63efe4530b0663eafef7e52291198813 (patch)
tree8f562d881b598b74b9b55d71fbbd1ab6c7722489 /check_xref
parentdd202cc0856298f5b04dc45e1b7a72b16b0bcc11 (diff)
parent2ba2833db6964c376ae631e4e2c2077035a32d04 (diff)
downloadrabbitmq-server-git-4a99be7e63efe4530b0663eafef7e52291198813.tar.gz
Merged default into bug19375
Diffstat (limited to 'check_xref')
-rwxr-xr-xcheck_xref16
1 files changed, 6 insertions, 10 deletions
diff --git a/check_xref b/check_xref
index 8f65f3b12b..df01931157 100755
--- a/check_xref
+++ b/check_xref
@@ -15,7 +15,7 @@
%% The Original Code is RabbitMQ.
%%
%% The Initial Developer of the Original Code is VMware, Inc.
-%% Copyright (c) 2010-2012 VMware, Inc. All rights reserved.
+%% Copyright (c) 2010-2013 VMware, Inc. All rights reserved.
%%
main(["-h"]) ->
@@ -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) ->