summaryrefslogtreecommitdiff
path: root/src/rebar_appups.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-07-14 23:44:47 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-07-23 13:17:11 +0200
commit252757c753e9ec5c5247a86eb635aee385d05ee1 (patch)
treea4d81e806bdfed018f0e5edf01aa4889d0a58896 /src/rebar_appups.erl
parent3c56fbab6f5d0b87ba21fac828899d20132d5066 (diff)
downloadrebar-252757c753e9ec5c5247a86eb635aee385d05ee1.tar.gz
Do not use application:set_env
Diffstat (limited to 'src/rebar_appups.erl')
-rw-r--r--src/rebar_appups.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_appups.erl b/src/rebar_appups.erl
index 88cf8d9..0aeccb6 100644
--- a/src/rebar_appups.erl
+++ b/src/rebar_appups.erl
@@ -41,10 +41,11 @@
'generate-appups'(Config, ReltoolFile) ->
%% Get the old release path
{Config1, ReltoolConfig} = rebar_rel_utils:load_config(Config, ReltoolFile),
- TargetParentDir = rebar_rel_utils:get_target_parent_dir(ReltoolConfig),
+ TargetParentDir = rebar_rel_utils:get_target_parent_dir(Config,
+ ReltoolConfig),
- OldVerPath = filename:join([TargetParentDir,
- rebar_rel_utils:get_previous_release_path()]),
+ PrevRelPath = rebar_rel_utils:get_previous_release_path(Config),
+ OldVerPath = filename:join([TargetParentDir, PrevRelPath]),
%% Get the new and old release name and versions
{Name, _Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig),