Package: di-netboot-assistant Version: 0.36 Tags: patch By default, curl will return successfully regardless of the HTTP error code. For example:
if curl --silent http://www.debian.org/404 >/dev/null then echo "Huh? But the page returned 404!" else echo "Curl failed." fi di-netboot-assistant should call curl with "-f/--fail" so that it returns non-zero to prevent it from continuing - if there is no checksum available, a mirror's "404" page might be installed as a kernel or initrd! Patch attached. Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20
diff -urNad di-netboot-assistant-0.36.orig/usr/bin/di-netboot-assistant
di-netboot-assistant-0.36/usr/bin/di-netboot-assistant
--- di-netboot-assistant-0.36.orig/usr/bin/di-netboot-assistant 2008-08-04
02:23:07.000000000 +0100
+++ di-netboot-assistant-0.36/usr/bin/di-netboot-assistant 2008-08-04
02:23:25.000000000 +0100
@@ -271,7 +271,7 @@
if which wget > /dev/null ; then
GETTER="wget -c -x $WGET_VERBOSITY -O"
elif which curl > /dev/null ; then
- GETTER="curl $CURL_VERBOSITY -o"
+ GETTER="curl -f $CURL_VERBOSITY -o"
else
echo "E: Can't download file. no download tool detected
(wget or curl)." 1>&2
echo "" 1>&2
signature.asc
Description: PGP signature

