From bd3c1a7b8a2d5c8d35bea0655ec95b313cda9df2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 19 Oct 2016 22:39:48 +0100 Subject: curl invocation: Always honour @curl Use --curl= and --curl: in ftpmaster api queries and in http git checks. Signed-off-by: Ian Jackson --- dgit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dgit') diff --git a/dgit b/dgit index f1f952a..2dd45be 100755 --- a/dgit +++ b/dgit @@ -955,7 +955,7 @@ sub pool_dsc_subpath ($$) { sub archive_api_query_cmd ($) { my ($subpath) = @_; - my @cmd = qw(curl -sS); + my @cmd = (@curl, qw(-sS)); my $url = access_cfg('archive-query-url'); if ($url =~ m#^https://([-.0-9a-z]+)/#) { my $host = $1; @@ -1321,7 +1321,7 @@ sub check_for_git () { my $suffix = access_cfg('git-check-suffix','git-suffix', 'RETURN-UNDEF') // '.git'; my $url = "$prefix/$package$suffix"; - my @cmd = (qw(curl -sS -I), $url); + my @cmd = (@curl, qw(-sS -I), $url); my $result = cmdoutput @cmd; $result =~ s/^\S+ 200 .*\n\r?\n//; # curl -sS -I with https_proxy prints -- cgit v1.2.3