Skip to content

Commit

Permalink
Suggest using agner build instead of install for packages that don't …
Browse files Browse the repository at this point in the history
…have an install_command
  • Loading branch information
yrashk committed Feb 15, 2011
1 parent 1eabcca commit 072d489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agner_fetch.erl
Expand Up @@ -496,7 +496,7 @@ install_command(#opts_rec{ spec = {spec, Spec}, directory = Directory, quiet = Q
ok = filelib:ensure_dir(InstallPrefix ++ "/"),
case proplists:get_value(install_command, Spec) of
undefined ->
io:format("ERROR: No install_command specified, can't install this package~n");
io:format("ERROR: No install_command specified, can't install this package. May you want to use just `agner build ~s`?~n", [Package]);
Command ->
io:format("[Installing...]~n"),
Port = open_port({spawn,"sh -c \"" ++ Command ++ "\""},[{cd, Directory},exit_status,stderr_to_stdout,use_stdio, stream]),
Expand Down

0 comments on commit 072d489

Please sign in to comment.