builder: use the new json_parser_tree_parse_file

No need to read the whole file manually.
This commit is contained in:
Pino Toscano
2018-08-23 19:12:46 +02:00
parent bb00c482e8
commit ec345aca02

View File

@@ -44,7 +44,7 @@ let get_index ~downloader ~sigchecker { Sources.uri; proxy } =
| Some f -> f
) else
tmpfile in
json_parser_tree_parse (read_whole_file file) in
json_parser_tree_parse_file file in
let downloads =
let uri_index =