summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-12-13 20:44:58 -0500
committerFred Hebert <mononcqc@ferd.ca>2015-12-13 20:44:58 -0500
commit6f07a636d8f309caef7c68e576396ce3328075ea (patch)
tree7228bc27638a75f9a0d5db010af8daaf0d0622c9 /src
parentb19a83976319cdf3807d4231b8faf0d797cbcdcd (diff)
parentac4451ff235ded6c4358f00fe9a57b219cf3b418 (diff)
downloadrebar-6f07a636d8f309caef7c68e576396ce3328075ea.tar.gz
Merge pull request #573 from lrascao/feature/improve_relup_generation_debug
Provide additional debug logging on relup generation
Diffstat (limited to 'src')
-rw-r--r--src/rebar_upgrade.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl
index 23da5a3..01edbd2 100644
--- a/src/rebar_upgrade.erl
+++ b/src/rebar_upgrade.erl
@@ -44,18 +44,24 @@
'generate-upgrade'(Config0, ReltoolFile) ->
%% Get the old release path
{Config, ReltoolConfig} = rebar_rel_utils:load_config(Config0, ReltoolFile),
+ ?DEBUG("reltool.config: ~p~n", [ReltoolConfig]),
TargetParentDir = rebar_rel_utils:get_target_parent_dir(Config,
ReltoolConfig),
TargetDir = rebar_rel_utils:get_target_dir(Config, ReltoolConfig),
+ ?DEBUG("target dir: ~p~n", [TargetDir]),
PrevRelPath = rebar_rel_utils:get_previous_release_path(Config),
OldVerPath = filename:join([TargetParentDir, PrevRelPath]),
+ ?DEBUG("old version path: ~p~n", [OldVerPath]),
%% Run checks to make sure that building a package is possible
{NewVerPath, NewName, NewVer, OldVer} = run_checks(Config, OldVerPath,
ReltoolConfig),
+ ?DEBUG("old version: ~p~n", [OldVer]),
NameVer = NewName ++ "_" ++ NewVer,
OldRelName = get_old_rel_name(OldVerPath, OldVer, NewName),
+ ?DEBUG("new version path: ~p~n", [NewVerPath]),
+ ?DEBUG("old version: ~p~n", [NewVer]),
%% Save the code path prior to doing anything
OrigPath = code:get_path(),