summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_file_utils.erl5
-rw-r--r--src/rebar_prv_update.erl4
2 files changed, 2 insertions, 7 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl
index 4f8eff5..2f39b96 100644
--- a/src/rebar_file_utils.erl
+++ b/src/rebar_file_utils.erl
@@ -27,7 +27,6 @@
-module(rebar_file_utils).
-export([try_consult/1,
- replace_home_dir/1,
format_error/1,
symlink_or_copy/2,
rm_rf/1,
@@ -60,10 +59,6 @@ try_consult(File) ->
throw(?PRV_ERROR({bad_term_file, File, Reason}))
end.
-replace_home_dir(Dir) ->
- HomeDir = rebar_dir:home_dir(),
- re:replace(Dir, [$^ | HomeDir], "~", [{return, list}]).
-
format_error({bad_term_file, AppFile, Reason}) ->
io_lib:format("Error reading file ~s: ~s", [AppFile, file:format_error(Reason)]).
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl
index 10faf4d..0491535 100644
--- a/src/rebar_prv_update.erl
+++ b/src/rebar_prv_update.erl
@@ -50,7 +50,7 @@ do(State) ->
{ok, Data} = file:read_file(TmpFile),
Unzipped = zlib:gunzip(Data),
ok = file:write_file(HexFile, Unzipped),
- ?INFO("Writing registry to ~s", [rebar_file_utils:replace_home_dir(HexFile)]),
+ ?INFO("Writing registry to ~s", [HexFile]),
hex_to_index(State),
ok
catch
@@ -95,7 +95,7 @@ hex_to_index(State) ->
end, true, Registry),
ets:insert(?PACKAGE_TABLE, {package_index_version, ?PACKAGE_INDEX_VERSION}),
- ?INFO("Writing index to ~s", [rebar_file_utils:replace_home_dir(PackageIndex)]),
+ ?INFO("Writing index to ~s", [PackageIndex]),
ets:tab2file(?PACKAGE_TABLE, PackageIndex),
true
after