cd $dst
for f in $files; do
- echo "fetching $f"
+ echo >&2 "fetching $f"
curl -s $src/$f >$f.new
done
for p in $packages; do
set +e
- echo "collecting $p"
+ echo >&2 "collecting $p"
pkgfile=`bzcat Packages.bz2 | grep-dctrl -PX $p -nsFilename`
rc=$?
set -e
#ln -s $date current.new
#mv -Tf current.new current
-echo "downloaded $dstroot/$arch/$date"
+echo $date
+echo >&2 "downloaded $dstroot/$arch/$date"
if test -d "$tftp/$dibase/$arch/$diver"; then continue; fi
mkdir -p "$tftp/$dibase/$arch"
echo "** need to generate d-i with firmware for $arch"
- ./mg-debian-installer-update $suite $arch $firmware
+ div=`./mg-debian-installer-update $suite $arch $firmware`
+ rm -f "$tftp/$dibase/$arch/current"
+ ln -s $div "$tftp/$dibase/$arch/current"
done
fi