This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [PATCH] Setup.exe: don't download forever in unattended mode.
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 4 Nov 2009 12:42:13 -0500
- Subject: Re: [PATCH] Setup.exe: don't download forever in unattended mode.
- References: <4AF1BE23.3030807@gmail.com>
- Reply-to: cygwin-apps at cygwin dot com
On Wed, Nov 04, 2009 at 05:47:15PM +0000, Dave Korn wrote:
>
> Hi all,
>
> In unattended mode, setup.exe automatically answers "yes" to all message
>boxes. If the message box is asking whether to retry an incomplete download,
>and the reason for the incomplete download is something non-transient, like
>the localhost or the mirror going offline, or a file is missing from the
>mirror, then it'll happily run forever. This patch adds a simple retry limit
>to the download stage in unattended mode; if it takes more than five goes, it
>gives up.
>
> * download.cc (do_download_thread): Only retry an incomplete download
> a limited number of times in unattended mode.
>
> Tested on a local mirror, by removing a package file. OK?
Yes, thanks.
cgf