spilgames/rebar — pull request #4 by yfyf (2012-08-30 11:50:40+00:00)
Title: Fix get_shared_deps_dir

* `rebar_deps:get_shared_deps_dir(D)` now properly returns `{true, _}/{false, _}`
tuples instead of always` {true, _}`
* furthermore, it constructs the correct full path to the shared directory
(with the branch/rev/tag suffix)

This solves the issue discussed in pull request #3, because now when attempting to delete the manually symlinked dependency, rebar would try to remove it's expected entry in `$REBAR_SHARED_DEPS_DIR` (instead of trying to follow the actual symlink), which wouldn't exist.

Perhaps not the cleanest solution, but this is the simplest solution not requiring major refactoring of the shared-deps patch and this change actually makes other parts cleaner.