浏览代码

Simplify find_dep_in_dir

pull/3/head
Tuncer Ayaz 14 年前
父节点
当前提交
fa38ed64cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_deps.erl

+ 1
- 1
src/rebar_deps.erl 查看文件

@ -218,7 +218,7 @@ find_dep(Dep, undefined) ->
%% 'source' is undefined. If Dep is not satisfied locally, %% 'source' is undefined. If Dep is not satisfied locally,
%% go ahead and find it amongst the lib_dir's. %% go ahead and find it amongst the lib_dir's.
case find_dep_in_dir(Dep, get_deps_dir(Dep#dep.app)) of case find_dep_in_dir(Dep, get_deps_dir(Dep#dep.app)) of
{avail, Dir} -> {avail, Dir};
{avail, _Dir} = Avail -> Avail;
{missing, _} -> find_dep_in_dir(Dep, get_lib_dir(Dep#dep.app)) {missing, _} -> find_dep_in_dir(Dep, get_lib_dir(Dep#dep.app))
end; end;
find_dep(Dep, _Source) -> find_dep(Dep, _Source) ->

正在加载...
取消
保存