From: Konrad Rzeszutek Wilk <kon...@osstest.dumpdata.com>

where appropiate.

When constructing Debian related items we should be using the
DebianMirrorProxy instead of all catch HttpProxy.

Or alternatively support the case where are no HttProxy at all.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
---
 mg-debian-installer-update | 4 ++--
 mgi-common                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index 38ae782..84127ad 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -64,8 +64,8 @@ dstroot=`getconfig TftpPath`/`getconfig TftpDiBase`/
 date=`date +%Y-%m-%d`
 dst=$arch/$date-$suite
 
-case "`getconfig HttpProxy`" in
-?*)    export http_proxy=`getconfig HttpProxy` ;;
+case "`getconfig DebianMirrorProxy`" in
+?*)    export http_proxy=`getconfig DebianMirrorProxy` ;;
 esac
 
 cd $dstroot
diff --git a/mgi-common b/mgi-common
index 8a2c2d9..45cae69 100644
--- a/mgi-common
+++ b/mgi-common
@@ -27,7 +27,7 @@ fetch () {
        # and (2) if we are explicitly using a proxy to avoid getting
        # stale data (bearing in mind that we run this interactively only)
        : ${mg_update_proxy=$(
-               cd $mg_update_org_pwd && getconfig HttpProxy
+               cd $mg_update_org_pwd && getconfig DebianMirrorProxy
        )}
        curl -s -H 'Pragma: no-cache' \
                ${mg_update_proxy+-x} ${mg_update_proxy} \
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to