diff options
author | Loïc Hoguin <[email protected]> | 2015-05-23 18:47:21 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-23 18:47:21 +0300 |
commit | 54794fd9a01668870e48a5a58b380bec4d6a9d18 (patch) | |
tree | ee4baaa75ddf00417f0b362e0a2dd7a4395aad78 /core/deps.mk | |
parent | a0a70ec49e428520b702ad9a8f50d05fd95f7c71 (diff) | |
download | erlang.mk-54794fd9a01668870e48a5a58b380bec4d6a9d18.tar.gz erlang.mk-54794fd9a01668870e48a5a58b380bec4d6a9d18.tar.bz2 erlang.mk-54794fd9a01668870e48a5a58b380bec4d6a9d18.zip |
Don't patch plugin at all if not required
Remove riak_test from the index as it broke and the problem
is larger than it looks.
Diffstat (limited to 'core/deps.mk')
-rw-r--r-- | core/deps.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/deps.mk b/core/deps.mk index 66936c1..bfd211c 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -367,10 +367,13 @@ define dep_autopatch_rebar.erl Write("\ninclude ../../erlang.mk"), PatchPlugin = fun(ErlFile) -> {ok, F0} = file:read_file(ErlFile), - F = re:replace(F0, "rebar_config:", "rebar_config_", [global]), - ok = file:write_file(ErlFile, [F, - "\nrebar_config_get(_, current_command, _) -> compile.\n" - ]) + case re:replace(F0, "rebar_config:", "rebar_config_", [global]) of + F0 -> ok; + F -> + ok = file:write_file(ErlFile, [F, + "\nrebar_config_get(_, current_command, _) -> compile.\n" + ]) + end end, RunPlugin = fun(Plugin, Step) -> case erlang:function_exported(Plugin, Step, 2) of |