Browse Source

mad and active now working

Maxim Sokhatsky 11 years ago
parent
commit
5b6cfd063a
2 changed files with 2 additions and 3 deletions
  1. 0 1
      src/mad.app.src
  2. 2 2
      src/mad_compile.erl

+ 0 - 1
src/mad.app.src

@@ -3,5 +3,4 @@
   {vsn, ""},
   {vsn, ""},
   {registered, []},
   {registered, []},
   {applications, [kernel,stdlib]},
   {applications, [kernel,stdlib]},
-  {mod, { mad_app, []}},
   {env, []}]}.
   {env, []}]}.

+ 2 - 2
src/mad_compile.erl

@@ -11,8 +11,8 @@
 deps(_, _, _, []) -> ok;
 deps(_, _, _, []) -> ok;
 deps(Cwd, Conf, ConfigFile, [H|T]) ->
 deps(Cwd, Conf, ConfigFile, [H|T]) ->
     {Name, _} = mad_deps:name_and_repo(H),
     {Name, _} = mad_deps:name_and_repo(H),
-    case get(Name) of
-        compiled -> ok;
+    case get(Name) == compiled andalso get(mode) /= active  of
+        true -> ok;
         _ -> dep(Cwd, Conf, ConfigFile, Name) end,
         _ -> dep(Cwd, Conf, ConfigFile, Name) end,
     deps(Cwd, Conf, ConfigFile, T).
     deps(Cwd, Conf, ConfigFile, T).