summaryrefslogtreecommitdiff
path: root/check_xref
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-03-20 11:08:28 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-03-20 11:08:28 +0000
commit77d144b31b1cce83eebe6e73a7c32d28dc8492bc (patch)
treec7db7336a88d46ad5216ea5cee8a8b604701f9e1 /check_xref
parent1977e9490ab0a909a861fb9ee2804824e4b2523a (diff)
parente6cd73e32bc88fe464cdc9a285d15c5104b5032f (diff)
downloadrabbitmq-server-git-77d144b31b1cce83eebe6e73a7c32d28dc8492bc.tar.gz
stable to default
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) ->