1
0
mirror of synced 2026-02-23 15:12:13 +00:00

Added apt_proxy option to make debootstrap use a proxy.

This commit is contained in:
Alex Tomlins
2011-03-31 09:30:44 +01:00
parent 5aad123429
commit 47c146e173
2 changed files with 13 additions and 1 deletions

View File

@@ -757,12 +757,21 @@ sub do_debootstrap
$EXTRA .= " --arch $CONFIG{'arch'}";
}
#
# 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'}\"";
}
#
# This is the command we'll run
#
my $command =
"$cmd $EXTRA $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}";
"$PROXY $cmd $EXTRA $CONFIG{'dist'} $CONFIG{'location'} $CONFIG{'mirror'}";
#
# Run the command.

View File

@@ -278,6 +278,9 @@ mirror = `xt-guess-suite-and-mirror --mirror`
# mirror_maverick = http://archive.ubuntu.com/ubuntu
# mirror_natty = http://archive.ubuntu.com/ubuntu
# If this is defined it will be used by debootstrap
#
# apt_proxy =
#
# Filesystem options for the different filesystems we support.