Browse Source

Fix autopatch of non-atom applications names

Loïc Hoguin 9 years ago
parent
commit
d415fda4f3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/deps.mk

+ 2 - 2
core/deps.mk

@@ -446,11 +446,11 @@ define dep_autopatch_app.erl
 		case filelib:is_regular(App) of
 		case filelib:is_regular(App) of
 			false -> ok;
 			false -> ok;
 			true ->
 			true ->
-				{ok, [{application, $(1), L0}]} = file:consult(App),
+				{ok, [{application, '$(1)', L0}]} = file:consult(App),
 				Mods = filelib:fold_files("$(DEPS_DIR)/$(1)/src", "\\\\.erl$$$$", true,
 				Mods = filelib:fold_files("$(DEPS_DIR)/$(1)/src", "\\\\.erl$$$$", true,
 					fun (F, Acc) -> [list_to_atom(filename:rootname(filename:basename(F)))|Acc] end, []),
 					fun (F, Acc) -> [list_to_atom(filename:rootname(filename:basename(F)))|Acc] end, []),
 				L = lists:keystore(modules, 1, L0, {modules, Mods}),
 				L = lists:keystore(modules, 1, L0, {modules, Mods}),
-				ok = file:write_file(App, io_lib:format("~p.~n", [{application, $(1), L}]))
+				ok = file:write_file(App, io_lib:format("~p.~n", [{application, '$(1)', L}]))
 		end
 		end
 	end,
 	end,
 	UpdateModules("$(DEPS_DIR)/$(1)/ebin/$(1).app"),
 	UpdateModules("$(DEPS_DIR)/$(1)/ebin/$(1).app"),