summaryrefslogtreecommitdiff
path: root/check_xref
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-01-15 18:39:00 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2013-01-15 18:39:00 +0000
commit04e567b3ebf3f75c2830d6a147c792326ae2a822 (patch)
treef5c6b9b6116f6d09bd03dd269eac4a1078e8940a /check_xref
parent1a6d9d04133365dfb25313f63266d7afef87b5f3 (diff)
downloadrabbitmq-server-04e567b3ebf3f75c2830d6a147c792326ae2a822.tar.gz
make check_xref work when plugins dir is empty
Diffstat (limited to 'check_xref')
-rwxr-xr-xcheck_xref11
1 files changed, 3 insertions, 8 deletions
diff --git a/check_xref b/check_xref
index 8f65f3b1..0debd34a 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),
@@ -267,14 +268,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) ->