[PATCH] Setup.exe: don't download forever in unattended mode.

Dave Korn dave.korn.cygwin@googlemail.com
Wed Nov 4 17:32:00 GMT 2009


    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?

    cheers,
      DaveK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup-dont-download-forever.diff
Type: text/x-c
Size: 1312 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20091104/24d76b8c/attachment.bin>


More information about the Cygwin-apps mailing list