Skip to content
Browse files

fix incorrect ERTS version being set on build in some cases (TSUN-212)

  • Loading branch information...
1 parent 015c0d7 commit 7acf6188534d9376174f8f001910ff9cef5f6a2c @nniclausse nniclausse committed Feb 17, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 priv/builder.erl
View
6 priv/builder.erl
@@ -1417,11 +1417,7 @@ get_vsn(App, [[App, Vsn]|_]) -> Vsn;
get_vsn(App, [_|T]) -> get_vsn(App, T).
get_erts_vsn() ->
- {ok, [[Root]]} = init:get_argument(root),
- {ok, Fs} = file:list_dir(Root),
- get_erts_vsn(Fs).
-get_erts_vsn([[$e,$r,$t,$s,$-|Vsn]|_]) -> Vsn;
-get_erts_vsn([_|T]) -> get_erts_vsn(T).
+ erlang:system_info(version).
out(Dir, App, Ext, Term) ->
FN = filename:join(Dir, App++Ext),

0 comments on commit 7acf618

Please sign in to comment.
Something went wrong with that request. Please try again.