Fix skip check for deps not present

Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/eae26a5c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/eae26a5c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/eae26a5c

Branch: refs/heads/import
Commit: eae26a5c4303f913b7d8d7177683cb4ae008d47c
Parents: d9aa65f
Author: Andrew Thompson <[email protected]>
Authored: Tue Sep 24 12:07:41 2013 -0400
Committer: Andrew Thompson <[email protected]>
Committed: Tue Sep 24 12:07:41 2013 -0400

----------------------------------------------------------------------
 src/rebar_deps.erl | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/eae26a5c/src/rebar_deps.erl
----------------------------------------------------------------------
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index 40000ad..6450715 100644
--- a/src/rebar_deps.erl
+++ b/src/rebar_deps.erl
@@ -634,12 +634,16 @@ update_deps_int(Config0, UDD) ->
 
 should_skip_update_dep(Config, Dep) ->
     {true, AppDir} = get_deps_dir(Config, Dep#dep.app),
-    {true, AppFile} = rebar_app_utils:is_app_dir(AppDir),
-    case rebar_app_utils:is_skipped_app(Config, AppFile) of
-        {_Config, {true, _SkippedApp}} ->
-            true;
-        _ ->
-            false
+    case rebar_app_utils:is_app_dir(AppDir) of
+        false ->
+            false;
+        {true, AppFile} ->
+            case rebar_app_utils:is_skipped_app(Config, AppFile) of
+                {_Config, {true, _SkippedApp}} ->
+                    true;
+                _ ->
+                    false
+            end
     end.
 
 %% Recursively walk the deps and build a list of them.

Reply via email to