summaryrefslogtreecommitdiff
path: root/src/rebar_app_info.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r--src/rebar_app_info.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl
index 503d3bc..89307ad 100644
--- a/src/rebar_app_info.erl
+++ b/src/rebar_app_info.erl
@@ -11,6 +11,7 @@
app_file/1,
app_file/2,
original_vsn/1,
+ original_vsn/2,
dir/1,
dir/2]).
@@ -84,6 +85,10 @@ app_file(AppInfo=#app_info_t{}, AppFile) ->
original_vsn(#app_info_t{original_vsn=Vsn}) ->
Vsn.
+-spec original_vsn(t(), string()) -> string().
+original_vsn(AppInfo=#app_info_t{}, Vsn) ->
+ AppInfo#app_info_t{original_vsn=Vsn}.
+
-spec dir(t()) -> file:name().
dir(#app_info_t{dir=Dir}) ->
Dir.