mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Fix whitespace errors
This commit is contained in:
parent
4e471e6986
commit
2be2f2bfe7
1 changed files with 25 additions and 16 deletions
|
@ -80,26 +80,35 @@
|
||||||
|
|
||||||
run_checks(OldVerPath, ReltoolConfig) ->
|
run_checks(OldVerPath, ReltoolConfig) ->
|
||||||
true = rebar_utils:prop_check(filelib:is_dir(OldVerPath),
|
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),
|
{Name, Ver} = rebar_rel_utils:get_reltool_release_info(ReltoolConfig),
|
||||||
|
|
||||||
NewVerPath = filename:join([
|
NewVerPath =
|
||||||
rebar_rel_utils:get_target_parent_dir(ReltoolConfig),
|
filename:join([rebar_rel_utils:get_target_parent_dir(ReltoolConfig),
|
||||||
Name]),
|
Name]),
|
||||||
true = rebar_utils:prop_check(filelib:is_dir(NewVerPath),
|
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),
|
{NewName, NewVer} = rebar_rel_utils:get_rel_release_info(Name, NewVerPath),
|
||||||
{OldName, OldVer} = rebar_rel_utils:get_rel_release_info(Name, OldVerPath),
|
{OldName, OldVer} = rebar_rel_utils:get_rel_release_info(Name, OldVerPath),
|
||||||
|
|
||||||
true = rebar_utils:prop_check(NewName == OldName,
|
true =
|
||||||
"New and old .rel release names do not match~n", []),
|
rebar_utils:prop_check(NewName == OldName,
|
||||||
true = rebar_utils:prop_check(Name == NewName,
|
"New and old .rel release names do not match~n",
|
||||||
"Reltool and .rel release names do not match~n", []),
|
[]),
|
||||||
true = rebar_utils:prop_check(NewVer =/= OldVer,
|
true =
|
||||||
"New and old .rel contain the same version~n", []),
|
rebar_utils:prop_check(Name == NewName,
|
||||||
true = rebar_utils:prop_check(Ver == NewVer,
|
"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", []),
|
"Reltool and .rel versions do not match~n", []),
|
||||||
|
|
||||||
{NewVerPath, NewName, NewVer}.
|
{NewVerPath, NewName, NewVer}.
|
||||||
|
|
Loading…
Reference in a new issue