Package: di-netboot-assistant Version: 0.36 Severity: wishlist Tags: patch It would be nice if the "Download failed" message included the failed URL without having to use "--verbose".
Although the URL can be obtained with "--verbose", the verbose option is somewhat too noisy to be used with cron and means you have to re-run the command to obtain the failed URL before you can begin poking your mirror; you cannot rely on the normal output alone. A patch is attached which adjusts the output of "di-netboot-assistant install lenny" from: I: Processing lenny/amd64 ... I: Downloading... E: Download has Failed. I: You have a previous version in your cache (see --offline option). I: No checksum fount. I: Moving/Removing temporary files. to: % sudo di-netboot-assistant install lenny I: Processing lenny/amd64 ... I: Downloading... E: Can't download 'lenny' for 'amd64' (http://yomi/debian/dists/lenny/main/installer-amd64/current/images/netboot/netboot.tar.gz). I: You have a previous version in your cache (see --offline option). I: No checksum fount. I: Moving/Removing temporary files. 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-02 18:22:03.000000000 +0100 +++ di-netboot-assistant-0.36/usr/bin/di-netboot-assistant 2008-08-02 18:26:17.000000000 +0100 @@ -293,8 +293,7 @@ fetch_date="$(date -R)" else echo "$EXTRA_DL_FILES" | tr " " "\n" | grep -qx $f || SUCCEED="failed" - echo "E: Download has Failed." 1>&2 - [ "$WGET_VERBOSITY" != "--quiet" ] && echo "E: Can't download '$release' for '$arch' ($url)." 1>&2 + echo "E: Can't download '$release' for '$arch' ($url)." 1>&2 [ -f "$file.tmp" ] && rm $RM_VERBOSITY "$file.tmp" if [ -f "$file" ]; then echo "I: You have a previous version in your cache (see --offline option)." 1>&2
signature.asc
Description: PGP signature