@@ -34,8 +34,8 @@ sbase=$site/dists/$suite
case ${suite}_${arch} in
*_i386|*_amd64)
- src=$sbase/main/installer-$arch/current/images/netboot/debian-installer/$arch
- files='initrd.gz linux'
+ src=$sbase/main/installer-$arch/current/images/netboot/
+ files="debian-installer/$arch/initrd.gz:initrd.gz debian-installer/$arch/linux:linux xen/vmlinuz:vmlinuz-xen xen/initrd.gz:initrd.gz-xen"
;;
lenny_armhf|squeeze_armhf)
# No such thing.
@@ -61,7 +61,9 @@ cd $dst
for f in $files; do
echo >&2 "fetching $f"
- curl -s $src/$f >$f.new
+ s=${f/:*} ; d=${f/*:}
+ echo "$src/$s => $d.new"
+ curl -s $src/$s >$d.new
done
curl -s $pfile >Packages.bz2
@@ -131,7 +133,8 @@ if [ $arch = armhf ]; then
fi
for f in $files; do
- mv -f $f.new $f
+ s=${f/:*} ; d=${f/*:}
+ mv -f $d.new $d
done
rm Packages.bz2
Some test cases are going to want this, so they should be grabbed and versioned here. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> --- mg-debian-installer-update | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)