Permalink
Browse files

Fixed a bug in passing dependency directory

  • Loading branch information...
1 parent 95d5ca3 commit 1dccef5c9477cfc082129bac5296da7dfc8ef903 @yrashk yrashk committed Mar 15, 2011
Showing with 2 additions and 3 deletions.
  1. BIN rebar
  2. +2 −3 src/agner_fetch.erl
View
BIN rebar
Binary file not shown.
View
@@ -226,6 +226,7 @@ fetched(fetch_requirements, #state{ opts = #opts_rec{ spec = {spec, Spec} } = Op
(ReqName) ->
build_dep(ReqName, "@master", Opts)
end, Requirements),
+ os:putenv("__AGNER_DEP_DIRECTORY", ""),
{next_state, fetched, State};
fetched(caveats, #state{ opts = #opts_rec{spec = {spec, Spec} }} = State) ->
@@ -461,9 +462,7 @@ build_dep(ReqName, ReqVersion, #opts_rec{ spec = {spec, Spec}, directory = Direc
io:format("[Processing dependency: ~s]~n", [ReqName]),
agner_main:handle_command(fetch, [{package, ReqName},{version, ReqVersion},
{directory, filename:join(deps_dir(Spec, Directory),ReqName)}|
- proplists:delete(spec,rec_to_opts(Opts))]),
- os:putenv("__AGNER_DEP_DIRECTORY","").
-
+ proplists:delete(spec,rec_to_opts(Opts))]).
rebar(#opts_rec{ spec = {spec, Spec} } = Opts) ->
case proplists:get_value(rebar_compatible, Spec) of
true ->

1 comment on commit 1dccef5

Owner

yrashk commented on 1dccef5 Mar 15, 2011

It essentially reverted the whole behaviour. I'll try fixing this ASAP

Please sign in to comment.