Added apt_proxy option to make debootstrap use a proxy.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user