Skip to content

Commit

Permalink
Fixed 'agner verify' command (was broken, used old agner_download:fet…
Browse files Browse the repository at this point in the history
…ch/2 API)
  • Loading branch information
yrashk committed Feb 1, 2011
1 parent 3b7fb9d commit cd5a060
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/agner_main.erl
Expand Up @@ -449,9 +449,8 @@ handle_command(verify, Opts) ->
{error, Reason} ->
io:format("ERROR: Can't read ~s: ~p~n",[SpecFile, Reason]);
{ok, Spec} ->
URL = proplists:get_value(url, Spec),
TmpFile = temp_name(),
case (catch agner_download:fetch(URL,TmpFile)) of
case (catch agner_download:fetch(Spec,TmpFile)) of
ok ->
io:format("~nPASSED~n");
{'EXIT', {Reason, _}} ->
Expand Down

0 comments on commit cd5a060

Please sign in to comment.