Skip to contentSkip to conversation

Documentation and various fixes to osstest.

PATCH New Konrad Rzeszutek Wilk 2 participants 6 messages Oct 18, 2016 – Oct 26, 2016

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 README: Also mention other requirements.

From: Konrad Rzeszutek Wilk <[email protected]>

Mainly dctrl-grep which is in the dctrl-tools.

---
 README | 1 +
 1 file changed, 1 insertion(+)
README +1 -0
index 4ff7e8d..97f098b 100644
@@ -253,6 +253,7 @@ To run osstest in standalone mode:
      netcat
      chiark-utils-bin
      libxml-libxml-perl
+     dctrl-tools
 
  - Optional:
      ipmitool -- for hosts which use IPMI for power control
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw

PATCH 2/2 s/HttpProxy/DebianMirrorProxy/

In reply to Konrad Rzeszutek Wilk

From: Konrad Rzeszutek Wilk <[email protected]>

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.

---
 mg-debian-installer-update | 4 ++--
 mgi-common                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
mg-debian-installer-update +2 -2
index 38ae782..84127ad 100755
@@ -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
mgi-common +1 -1
index 8a2c2d9..45cae69 100644
@@ -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} \
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#4 lore raw

Re: [PATCH 2/2] s/HttpProxy/DebianMirrorProxy/

Konrad Rzeszutek Wilk writes ("[PATCH 2/2] s/HttpProxy/DebianMirrorProxy/"):

Quoted 1 line

From: Konrad Rzeszutek Wilk <[email protected]>

...

Quoted 2 lines

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

I don't think this is right, because apt-cachers and the like are only required to support apt's uses, and not wgets of bits of installer.

But:

Quoted 1 line

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

This is right. So I think the patch below is better.

Ian.

From 85741f132e62e0cdaef66860d417fa80e9df7a13 Mon Sep 17 00:00:00 2001
From: Ian Jackson <[email protected]>
Date: Tue, 18 Oct 2016 16:46:20 +0100
Subject: [OSSTEST PATCH] mgi-common: Support empty (unset) HttpProxy properly

mg_update_proxy ends up being set to the empty string so the {...:+-x} form is needed to expand only non-empty values to `-x'.

---
 mgi-common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mgi-common +1 -1
index 8a2c2d9..5081521 100644
@@ -30,7 +30,7 @@ fetch () {
 		cd $mg_update_org_pwd && getconfig HttpProxy
 	)}
 	curl -s -H 'Pragma: no-cache' \
-		${mg_update_proxy+-x} ${mg_update_proxy} \
+		${mg_update_proxy:+-x} ${mg_update_proxy} \
 		$1
 }
 
Signature · 7 lines
2.9.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#5 lore raw

Re: [PATCH 2/2] s/HttpProxy/DebianMirrorProxy/

Quoted 8 lines · Ian Jackson

Konrad Rzeszutek Wilk writes ("[PATCH 2/2] s/HttpProxy/DebianMirrorProxy/"):

Quoted 1 line

From: Konrad Rzeszutek Wilk <[email protected]>

...

Quoted 2 lines

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

I don't think this is right, because apt-cachers and the like are only required to support apt's uses, and not wgets of bits of installer.

Yup!

Quoted 14 lines

But:

Quoted 1 line

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

This is right. So I think the patch below is better.

Ian.

Quoted 1 line

From 85741f132e62e0cdaef66860d417fa80e9df7a13 Mon Sep 17 00:00:00 2001

From: Ian Jackson <[email protected]>
Date: Tue, 18 Oct 2016 16:46:20 +0100
Subject: [OSSTEST PATCH] mgi-common: Support empty (unset) HttpProxy properly

Quoted 5 lines

mg_update_proxy ends up being set to the empty string so the {...:+-x} form is needed to expand only non-empty values to `-x'.

And Tested-by: Konrad Rzeszutek Wilk <[email protected]>

Quoted 21 lines
CC Marcos Matsunaga <[email protected]>
---
 mgi-common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mgi-common +1 -1
index 8a2c2d9..5081521 100644
@@ -30,7 +30,7 @@ fetch () {
 		cd $mg_update_org_pwd && getconfig HttpProxy
 	)}
 	curl -s -H 'Pragma: no-cache' \
-		${mg_update_proxy+-x} ${mg_update_proxy} \
+		${mg_update_proxy:+-x} ${mg_update_proxy} \
 		$1
 }
 
Signature · 1 line
2.9.3

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel