[Libguestfs] [PATCH 2/2] builder: use the new json_parser_tree_parse_file
Richard W.M. Jones
rjones at redhat.com
Thu Aug 23 17:21:19 UTC 2018
On Thu, Aug 23, 2018 at 07:15:46PM +0200, Pino Toscano wrote:
> No need to read the whole file manually.
> ---
> builder/simplestreams_parser.ml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/builder/simplestreams_parser.ml b/builder/simplestreams_parser.ml
> index ccbfdff67..407eb11fb 100644
> --- a/builder/simplestreams_parser.ml
> +++ b/builder/simplestreams_parser.ml
> @@ -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 =
ACK series.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
More information about the Libguestfs
mailing list