[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Malformed Release file [patch]



An additional suggestion: maybe add a check for the exit status of wget (in
/usr/lib/debootstrap/functions somewhere) so that the destination file is
automatically deleted if downloading fails.  Wget has the bad habit of
creating its output file as zero-length even if there was a gross failure
like an invalid hostname in the URL.

p.

Chris Tillman wrote:
>merge 119947 121724
>merge 119947 116393
>reopen 116757
>merge 119947 116757
>tags 119947 + patch
>thanks
>
>--- functions.orig	Sat Dec 15 21:20:23 2001
>+++ functions	Sat Dec 15 21:20:31 2001
>@@ -279,8 +279,9 @@
>     esac	
>   done
>   
>-  if [ "$COMPONENTS" = "" ]; then
>-    error 1 "Malformed release file $m1/dists/$SUITE/Release"
>+  if [ "$COMPONENTS" = "" ]; then 
>+    rm -f "$m1/dists/$SUITE/Release"
>+    error 1 "Malformed release file $m1/dists/$SUITE/Release (was deleted, tr
>y again)"
>   fi
>   progress 100 100 "Downloading Release file"



Reply to: