Share http/ftp/all proxy information in chroot while building.

Also this sets up sudoers to make sure later on the proxy
information sticks when you use sudo to emerge things.

It does away with the sudo_chroot function because now it can
pass CROS_WORKON_SRCROOT using the same functionality.

BUG=chromium-os:10048
TEST=Create a chroot from a location that requires a proxy.

Reviewed-on: http://gerrit.chromium.org/gerrit/327
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
(cherry picked from commit 39cd28724be12d16a06d21895c512f68bd0213a3)

Change-Id: I7286b6d8acc5d237b4118b3aaa08188d442502f4
Reviewed-on: http://gerrit.chromium.org/gerrit/680
Tested-by: Matt Tennant <mtennant@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
1 file changed