diff options
author | Tristan Sloughter <[email protected]> | 2014-05-05 17:32:49 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2014-05-05 17:32:49 -0500 |
commit | 81359cada7f5645fd0ea17400564d1416fd5d0be (patch) | |
tree | 1fa231ed9422f11924faea2b164828faf729712d | |
parent | f094ac63047b03275a5745f81b89d006aa5ad0cf (diff) | |
download | relx-81359cada7f5645fd0ea17400564d1416fd5d0be.tar.gz relx-81359cada7f5645fd0ea17400564d1416fd5d0be.tar.bz2 relx-81359cada7f5645fd0ea17400564d1416fd5d0be.zip |
resolve root dir to absolute path
-rw-r--r-- | src/rlx_state.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_state.erl b/src/rlx_state.erl index 0d4051e..c3c3176 100644 --- a/src/rlx_state.erl +++ b/src/rlx_state.erl @@ -139,7 +139,7 @@ new(PropList, Targets) realized_releases=ec_dictionary:new(ec_dict), config_values=ec_dictionary:new(ec_dict), overrides = proplists:get_value(overrides, PropList, []), - root_dir = proplists:get_value(root_dir, PropList, Root), + root_dir = filename:absname(proplists:get_value(root_dir, PropList, Root)), upfrom = proplists:get_value(upfrom, PropList, undefined), default_configured_release={proplists:get_value(relname, PropList, undefined), proplists:get_value(relvsn, PropList, undefined)}}, @@ -238,7 +238,7 @@ root_dir(#state_t{root_dir=RootDir}) -> -spec root_dir(t(), file:filename()) -> t(). root_dir(State, RootDir) -> - State#state_t{root_dir=RootDir}. + State#state_t{root_dir=filename:absname(RootDir)}. -spec providers(t(), [rlx_provider:t()]) -> t(). providers(M, NewProviders) -> |