Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:agner/agner

  • Loading branch information...
commit ac15a3dd8f8dff1ab7a27973eb573565fdd4f2eb 2 parents 588abd3 + 1d8fcb7
@yrashk yrashk authored
Showing with 9 additions and 3 deletions.
  1. +1 −1  src/agner_download.erl
  2. +8 −2 src/agner_fetch.erl
View
2  src/agner_download.erl
@@ -60,7 +60,7 @@ git(Args) ->
git(Args, Opts) ->
Git = os:find_executable("git"),
- open_port({spawn_executable, Git},[{args, Args}, stderr_to_stdout,
+ open_port({spawn_executable, Git},[{args, Args},
exit_status|Opts]).
hg(Args) ->
View
10 src/agner_fetch.erl
@@ -31,7 +31,7 @@
repo_dir,
fetched_steps = [check_requirements, fetch_requirements, caveats],
build_steps = [rebar, build_command, add_path],
- install_steps = [install_command]
+ install_steps = [install_command, print_prefix]
}).
%%%===================================================================
@@ -251,7 +251,13 @@ installable(install_command, #state{ opts = #opts_rec{ install = true } = Opts,
{next_state, installable, State};
_ ->
{stop, {error, {install_failed, "Installation failed"}}}
- end.
+ end;
+
+installable(print_prefix, #state{ opts = #opts_rec{ install = true, package = Package, version = Version } } = State) ->
+ io:format("Installed to:~n"),
+ agner_main:handle_command(prefix,[{package, Package}, {version, Version}]),
+ {next_state, installable, State}.
+
%%--------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.