diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-09 12:43:09 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-09 12:43:09 +0100 |
commit | 2be2f2bfe72d709e666ab7037d923e15e127e245 (patch) | |
tree | b4cf790744cb68d01a7906b2a5675027892c0bc6 /src | |
parent | 4e471e69862b62aec2358bd1a0d29737dea88738 (diff) |
Fix whitespace errors
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_upgrade.erl | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl index cfe321e..aaa24fd 100644 --- a/src/rebar_upgrade.erl +++ b/src/rebar_upgrade.erl @@ -45,7 +45,7 @@ TargetDir = rebar_rel_utils:get_target_dir(ReltoolConfig), OldVerPath = filename:join([TargetParentDir, - rebar_rel_utils:get_previous_release_path()]), + rebar_rel_utils:get_previous_release_path()]), %% Run checks to make sure that building a package is possible {NewVerPath, NewName, NewVer} = run_checks(OldVerPath, ReltoolConfig), @@ -80,27 +80,36 @@ run_checks(OldVerPath, ReltoolConfig) -> true = rebar_utils:prop_check(filelib:is_dir(OldVerPath), - "Release directory doesn't exist (~p)~n", [OldVerPath]), + "Release directory doesn't exist (~p)~n", + [OldVerPath]), {Name, Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig), - NewVerPath = filename:join([ - rebar_rel_utils:get_target_parent_dir(ReltoolConfig), - Name]), + NewVerPath = + filename:join([rebar_rel_utils:get_target_parent_dir(ReltoolConfig), + Name]), true = rebar_utils:prop_check(filelib:is_dir(NewVerPath), - "Release directory doesn't exist (~p)~n", [NewVerPath]), + "Release directory doesn't exist (~p)~n", + [NewVerPath]), {NewName, NewVer} = rebar_rel_utils:get_rel_release_info(Name, NewVerPath), {OldName, OldVer} = rebar_rel_utils:get_rel_release_info(Name, OldVerPath), - true = rebar_utils:prop_check(NewName == OldName, - "New and old .rel release names do not match~n", []), - true = rebar_utils:prop_check(Name == NewName, - "Reltool and .rel release names do not match~n", []), - true = rebar_utils:prop_check(NewVer =/= OldVer, - "New and old .rel contain the same version~n", []), - true = rebar_utils:prop_check(Ver == NewVer, - "Reltool and .rel versions do not match~n", []), + true = + rebar_utils:prop_check(NewName == OldName, + "New and old .rel release names do not match~n", + []), + true = + rebar_utils:prop_check(Name == NewName, + "Reltool and .rel release names do not match~n", + []), + true = + rebar_utils:prop_check(NewVer =/= OldVer, + "New and old .rel contain the same version~n", + []), + true = + rebar_utils:prop_check(Ver == NewVer, + "Reltool and .rel versions do not match~n", []), {NewVerPath, NewName, NewVer}. @@ -154,8 +163,8 @@ boot_files(TargetDir, Ver, Name) -> ok; _ -> ok = file:make_symlink( - filename:join(["start.boot"]), - filename:join([".", ?TMP, "releases", Ver, Name ++ ".boot"])) + filename:join(["start.boot"]), + filename:join([".", ?TMP, "releases", Ver, Name ++ ".boot"])) end, {ok, _} = file:copy( |