mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Fix bug 499; do not delete dependencies that are not in the deps/ directory
This commit is contained in:
parent
ed59ed2b52
commit
ce74846e4e
1 changed files with 4 additions and 2 deletions
|
@ -116,10 +116,12 @@ compile(Config, AppFile) ->
|
|||
ok.
|
||||
|
||||
'delete-deps'(Config, _) ->
|
||||
%% Delete all the available deps, if any
|
||||
%% Delete all the available deps in our deps/ directory, if any
|
||||
DepsDir = get_deps_dir(),
|
||||
Deps = rebar_config:get_local(Config, deps, []),
|
||||
{AvailableDeps, _} = find_deps(Deps),
|
||||
[delete_dep(D) || D <- AvailableDeps],
|
||||
[delete_dep(D) || D <- AvailableDeps,
|
||||
lists:prefix(DepsDir, D#dep.dir) == true],
|
||||
ok.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue