1
0
mirror of synced 2026-04-16 07:56:15 +00:00

Use $ENV{http_proxy} instead of prepending the command with a variable

This commit is contained in:
Axel Beckert
2012-05-08 00:58:56 +02:00
parent 7c64b9e7c9
commit 6a6d3876f6

View File

@@ -762,18 +762,17 @@ sub do_debootstrap
#
# Setup http_proxy so that debootstrap pulls files through the apt-proxy
#
my $PROXY = '';
if ( $CONFIG{ 'apt_proxy' } )
{
print("Using apt_proxy: $CONFIG{'apt_proxy'}\n");
$PROXY = "http_proxy=\"$CONFIG{'apt_proxy'}\"";
$ENV{'http_proxy'} = $CONFIG{'apt_proxy'};
}
#
# This is the command we'll run
#
my $command =
"$PROXY $cmd $EXTRA $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}";
"$cmd $EXTRA $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}";
#
# Run the command.