]> granicus.if.org Git - ejabberd/commitdiff
Make sure that lager is first on our deps list
authorPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 14 Aug 2015 10:12:55 +0000 (12:12 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 17 Sep 2015 15:59:13 +0000 (17:59 +0200)
rebar.config.script

index 43bb8f0efbe9eb67e0d03978a8b661c199bc94ac..7ec52722b85320c675329dead1460cf5337eee9b 100644 (file)
@@ -167,6 +167,12 @@ TestConfig = case file:read_file_info(TestConfigFile) of
                      ""
              end,
 
+AllDeps0 = Deps ++ CfgDeps,
+AllDeps = case lists:keytake(lager, 1, AllDeps0) of
+               {value, Tuple, Rest} -> [Tuple|Rest];
+               false -> AllDeps0
+         end,
+
 Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
                [{src_dirs, [asn1, src | SrcDirs]}]},
           {sub_dirs, ["rel"]},
@@ -180,7 +186,7 @@ Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
           [{"(XC - UC) || (XU - X - B - "
             ++ string:join(CfgXrefs, " - ") ++ ")", []}]},
           {post_hooks, PostHooks ++ CfgPostHooks},
-          {deps, Deps ++ CfgDeps}] ++ ElixirConfig,
+          {deps, AllDeps}] ++ ElixirConfig,
 %%io:format("ejabberd configuration:~n  ~p~n", [Config]),
 Config.