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

Re: [PATCH 3/6] Allow usage of a broken mirror



On Tue, Feb 06, 2007 at 08:45:15AM -0200, Otavio Salvador wrote:
>From: Otavio Salvador <otavio@ossystems.com.br>
>
>Sometimes is useful to use a mirror without the docs and tools
>directory. This patch allow it if we export the ALLOWBROKENMIRROR
>variable on CONF.sh
>diff --git a/tools/make_image b/tools/make_image
>index c191a80..050f0a8 100755
>--- a/tools/make_image
>+++ b/tools/make_image
>@@ -53,8 +53,11 @@ do
> 	dir=$DIR/CD$n
> 
>     cd $dir
>-    # Anything last-minute that can only be done now?
>-    last_minute_update
>+
>+	if [ "$ALLOWBROKENMIRROR"x = ""x -o "$ALLOWBROKENMIRROR"x = "0"x ]; then
>+		# Anything last-minute that can only be done now?
>+		last_minute_update
>+	fi
> 
> 	cd $dir/..

No! Leaving out the last_minute_update call will cause you to fail to
update the README.html and README.txt files, for no good reason that I
can see.

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
Is there anybody out there?

Attachment: signature.asc
Description: Digital signature


Reply to: