Skip to content
This repository
Browse code

Don't spit an error if no build_command is specified but it is a reba…

…r-compatible package
  • Loading branch information...
commit 2c24d8ee2ac6f521b1c4e68636f1c0d570f46128 1 parent f6b4247
Yurii Rashkovskii yrashk authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 src/agner_main.erl
7 src/agner_main.erl
@@ -356,7 +356,12 @@ handle_command(fetch, Opts) ->
356 356 end,
357 357 case proplists:get_value(build_command, Spec) of
358 358 undefined ->
359   - io:format("ERROR: No build_command specified, can't build this package");
  359 + case proplists:get_value(rebar_compatible, Spec) of
  360 + true ->
  361 + ignore;
  362 + _ ->
  363 + io:format("ERROR: No build_command specified, can't build this package")
  364 + end;
360 365 Command ->
361 366 io:format("Building (output will be shown when done)...~n"),
362 367 {ok, Cwd0} = file:get_cwd(),

0 comments on commit 2c24d8e

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