Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Proper fix for --no-deps flag default value of 'false' instead of 'un…

…defined'
  • Loading branch information...
commit dcc74f3ce204e4cba322702cf963cb76f44f3b00 1 parent d9bcbe1
@yrashk yrashk authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/agner_fetch.erl
  2. +1 −1  src/agner_main.erl
View
8 src/agner_fetch.erl
@@ -239,7 +239,7 @@ fetched(fetch_requirements, #state{ opts = #opts_rec{ spec = {spec, Spec} } = Op
fetched(fetch_deps, #state{ opts = #opts_rec { nodeps = true } } = State) ->
{next_state, fetched, State};
-fetched(fetch_deps, #state{ opts = #opts_rec{ spec = {spec, Spec}, nodeps = undefined } = Opts } = State) ->
+fetched(fetch_deps, #state{ opts = #opts_rec{ spec = {spec, Spec}, nodeps = false } = Opts } = State) ->
RebarCommands = proplists:get_value(rebar_fetch_deps_commands, Spec),
rebar(RebarCommands, Opts),
fetch_deps_command(Opts),
@@ -467,7 +467,7 @@ current_agner_version() ->
build_dep(_ReqName, _ReqVersion, #opts_rec{ nodeps = true }) ->
ignore;
-build_dep(ReqName, ReqVersion, #opts_rec{ spec = {spec, Spec}, directory = Directory0, nodeps = undefined } = Opts) ->
+build_dep(ReqName, ReqVersion, #opts_rec{ spec = {spec, Spec}, directory = Directory0, nodeps = false } = Opts) ->
Directory =
case os:getenv("__AGNER_DEP_DIRECTORY") of
false ->
@@ -484,8 +484,8 @@ build_dep(ReqName, ReqVersion, #opts_rec{ spec = {spec, Spec}, directory = Direc
{directory, filename:join(deps_dir(Spec, Directory),ReqName)}|
proplists:delete(spec,rec_to_opts(Opts))]).
rebar(RebarCommands, #opts_rec{ nodeps = true } = Opts) ->
- rebar(RebarCommands ++ ["skip_deps=true"], Opts#opts_rec{ nodeps = undefined });
-rebar(RebarCommands, #opts_rec{ spec = {spec, Spec}, nodeps = undefined } = Opts) ->
+ rebar(RebarCommands ++ ["skip_deps=true"], Opts#opts_rec{ nodeps = false });
+rebar(RebarCommands, #opts_rec{ spec = {spec, Spec}, nodeps = false } = Opts) ->
case proplists:get_value(rebar_compatible, Spec) of
true ->
ScriptName = filename:absname(escript:script_name()),
View
2  src/agner_main.erl
@@ -384,7 +384,7 @@ handle_command(uninstall, Opts) ->
handle_command(install, Opts) ->
TmpFile = temp_name(),
- handle_command(fetch, [{build, true},{directory, TmpFile},{install, true},{addpath, false}|Opts]),
+ handle_command(fetch, [{build, true},{directory, TmpFile},{install, true},{addpath, false},{nodeps, false}|Opts]),
os:cmd("rm -rf " ++ TmpFile);
handle_command(build, Opts) ->

0 comments on commit dcc74f3

Please sign in to comment.
Something went wrong with that request. Please try again.