From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35546 invoked by alias); 14 Dec 2017 19:50:07 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 35532 invoked by uid 89); 14 Dec 2017 19:50:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, SHOULD, H*M:yandex, HX-Priority:Normal X-HELO: forward102j.mail.yandex.net Received: from forward102j.mail.yandex.net (HELO forward102j.mail.yandex.net) (5.45.198.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Dec 2017 19:50:05 +0000 Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 688275601529; Thu, 14 Dec 2017 22:50:02 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id IWkM9Xc2KM-o238paje; Thu, 14 Dec 2017 22:50:02 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dwiKj1E1Tu-o16ao24e; Thu, 14 Dec 2017 22:50:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 14 Dec 2017 19:46:16 -0000 Date: Thu, 14 Dec 2017 20:13:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <116333312.20171214224616@yandex.ru> To: Ken Brown , cygwin@cygwin.com Subject: Re: setup's response to a "corrupt local copy" In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00141.txt.bz2 Greetings, Ken Brown! > This is a followup to the discussion started here: > https://cygwin.com/ml/cygwin/2017-12/msg00088.html > When setup is preparing to download files and it finds a corrupt copy in > the local cache, it issues a fatal error message telling the user to > remove the corrupt file and retry. Steven said that setup should > silently delete the corrupt file, while I argued in favor of the current > behavior, on the grounds that setup shouldn't be deleting user files if > it doesn't know where they came from. The point being, if this is a "Download" Setup mode, the files are NOT "User" files, but a local setup cache. And all files therein SHOULD be valid package archives. There's of course situations, when setup.ini on server become corrupted or otherwise out of sync. But being rare, they should not interfere too much. > There is a middle ground: setup could query the user. Additionally, as > suggested by cyg Simple, there could be an option that directs setup to > silently remove corrupt files. Make it mode dependent. If it's a "download[ and install]" mode, cleanup and redownload. If redownloaded file still does not match the setup.ini hash or if it's an "install from local cache" mode, leave file alone for investigation and notify the user. -- With best regards, Andrey Repin Thursday, December 14, 2017 22:38:11 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple