From: Ian Campbell <Ian.Campbell@citrix.com>
To: ian.jackson@eu.citrix.com
Cc: xen-devel@lists.xen.org
Subject: Re: [OSSTEST PATCH] mg-debian-installer-update: produce deterministic output
Date: Sat, 10 Jan 2015 16:17:36 +0000 [thread overview]
Message-ID: <1420906656.11796.114.camel@citrix.com> (raw)
In-Reply-To: <1420906214.11796.112.camel@citrix.com>
On Sat, 2015-01-10 at 16:10 +0000, Ian Campbell wrote:
> As noted on IRC there is some sort of proxy between the osstest control
> VM and the world which is returning stale data, so I have run
> mg-debian-installer-update-all on my workstation, and the files do
> appear to have been updated as I would expect.
We might like to consider something along these lines for the future:
------8<---------
>From ff6747252def2c69ee2bac684861f4c16bc9b8a5 Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@citrix.com>
Date: Sat, 10 Jan 2015 16:14:15 +0000
Subject: [PATCH] mg-debian-installer-update: workaround caching proxies
Which otherwise interfere with updating d-i shortly after the upstream
update.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
mg-debian-installer-update | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index 5d12cf0..9fb2968 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -32,6 +32,11 @@ fail () { echo >&2 "$0: $1"; exit 1; }
site=http://ftp.debian.org/debian/
sbase=$site/dists/$suite
+fetch () {
+ # no-cache due to transparent proxies messing things up.
+ curl -s -H 'Pragma: no-cache' $1
+}
+
case ${suite}_${arch} in
*_i386|*_amd64)
src=$sbase/main/installer-$arch/current/images/netboot/
@@ -63,10 +68,10 @@ for f in $files; do
echo >&2 "fetching $f"
s=${f/:*} ; d=${f/*:}
echo >&2 "$src/$s => $d.new"
- curl -s $src/$s >$d.new
+ fetch $src/$s >$d.new
done
-curl -s $pfile >Packages.gz
+fetch $pfile >Packages.gz
for p in $packages; do
set +e
@@ -75,7 +80,7 @@ for p in $packages; do
rc=$?
set -e
if [ $rc != 0 ]; then fail "package $p not found"; fi
- curl -s "$site/$pkgfile" >$p.deb
+ fetch "$site/$pkgfile" >$p.deb
rm -rf x
dpkg-deb -x $p.deb x
cd x; pax -x sv4cpio -s '%lib%/lib%' -w -M norm lib >../cpio; cd ..
@@ -91,7 +96,7 @@ if [ $arch = armhf ]; then
bp="$sbase-backports"
pfile=$bp/main/binary-armhf/Packages.gz
- curl -s $pfile >Packages.gz
+ fetch $pfile >Packages.gz
# Newer kernel often needs a newer initramfs-tools. Make that available
echo >&2 "collecting backports initramfs-tools"
@@ -99,7 +104,7 @@ if [ $arch = armhf ]; then
rc=$?
set -e
if [ $rc != 0 ]; then fail "initramfs-tools package not found"; fi
- curl -s "$site/$pkgfile" >initramfs-tools.deb
+ fetch "$site/$pkgfile" >initramfs-tools.deb
set +e
echo >&2 "collecting armmp kernel"
@@ -109,7 +114,7 @@ if [ $arch = armhf ]; then
rc=$?
set -e
if [ $rc != 0 ]; then fail "armmp kernel package not found"; fi
- curl -s "$site/$pkgfile" >armmp.deb
+ fetch "$site/$pkgfile" >armmp.deb
dpkg-deb -x armmp.deb x
cp x/boot/vmlinuz-* linux.armmp
# The full set of modules is pretty large and not that
--
2.1.1
next prev parent reply other threads:[~2015-01-10 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 15:18 [OSSTEST PATCH] mg-debian-installer-update: produce deterministic output Ian Campbell
2015-01-10 16:10 ` Ian Campbell
2015-01-10 16:17 ` Ian Campbell [this message]
2015-01-12 12:27 ` Ian Jackson
2015-01-12 12:30 ` Ian Campbell
2015-02-04 15:40 ` Ian Jackson
2015-02-04 15:45 ` Ian Campbell
2015-01-12 12:20 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420906656.11796.114.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.