If a user wants to re-use an xva just with different proxy settings, he
can now do it, as this change will always update /etc/apt/apt.conf to
reflect the settings in the user's localrc.
Change-Id: I8a6e9c88304bc887ea8269d946e89a5ba258b126
| ... | ... |
@@ -118,3 +118,10 @@ deb-src http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security univer
|
| 118 | 118 |
deb http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security multiverse
|
| 119 | 119 |
deb-src http://security.ubuntu.com/ubuntu ${UBUNTU_INST_RELEASE}-security multiverse
|
| 120 | 120 |
EOF |
| 121 |
+ |
|
| 122 |
+rm -f $STAGING_DIR/etc/apt/apt.conf |
|
| 123 |
+if [ -n "$UBUNTU_INST_HTTP_PROXY" ]; then |
|
| 124 |
+ cat > $STAGING_DIR/etc/apt/apt.conf << EOF |
|
| 125 |
+Acquire::http::Proxy "$UBUNTU_INST_HTTP_PROXY"; |
|
| 126 |
+EOF |
|
| 127 |
+fi |