diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-23 15:24:55 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-23 15:31:13 +0100 |
commit | 1451f1261ad4420b46e90a44c3c7cae26432994e (patch) | |
tree | 88f6455ac3e607f2aa29fb7e5c2663e6e9a564b7 /dgit | |
parent | 49057372811e0d8f1f3cf856a3056dfe49e9139f (diff) |
dgit: Make cmd_archive_api_query call api_query_raw
In support of #932570. Now there is only one caller of
archive_api_query_cmd.
It is OK to pass `undef' because
- archive_
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -7347,10 +7347,8 @@ sub cmd_archive_api_query { badusage __ "need only 1 subpath argument" unless @ARGV==1; my ($subpath) = @ARGV; local $isuite = 'DGIT-API-QUERY-CMD'; - my @cmd = archive_api_query_cmd($subpath); - push @cmd, qw(-f); - debugcmd ">",@cmd; - exec @cmd or fail f_ "exec curl: %s\n", $!; + my $json = api_query_raw $subpath; + print $json or die "$!"; } sub repos_server_url () { |