diff options
author | Jordan Wilberding <[email protected]> | 2014-05-06 09:45:50 +0200 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2014-05-06 09:45:50 +0200 |
commit | 4c50cb6ab933cd08f51763f9a62436271d9962f5 (patch) | |
tree | 24e0a158c6f7bcd53c958f879561cb306658be72 | |
parent | b8ea30807fb0bb400b56d3f5f80d85e6c16ad1d3 (diff) | |
parent | 81359cada7f5645fd0ea17400564d1416fd5d0be (diff) | |
download | relx-4c50cb6ab933cd08f51763f9a62436271d9962f5.tar.gz relx-4c50cb6ab933cd08f51763f9a62436271d9962f5.tar.bz2 relx-4c50cb6ab933cd08f51763f9a62436271d9962f5.zip |
Merge pull request #176 from tsloughter/root_dir
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) -> |