aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-23 18:47:21 +0300
committerLoïc Hoguin <[email protected]>2015-05-23 18:47:21 +0300
commit54794fd9a01668870e48a5a58b380bec4d6a9d18 (patch)
treeee4baaa75ddf00417f0b362e0a2dd7a4395aad78 /core/deps.mk
parenta0a70ec49e428520b702ad9a8f50d05fd95f7c71 (diff)
downloaderlang.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.mk11
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