X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AFCA4BD.4000204@gmail.com>
Date: Fri, 13 Nov 2009 00:13:49 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Suggestion: Have setup.exe warn before upgrading 'cgywin'  package   itself
References: <26327934.post@talk.nabble.com> <COL102-W2DE24D2124E70390988ACB5A90@phx.gbl>
In-Reply-To: <COL102-W2DE24D2124E70390988ACB5A90@phx.gbl>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Karl M wrote:
>> Date: Thu, 12 Nov 2009 14:46:12 -0800

>> Currently when upgrading the base 'cygwin' package, the installer only warns
>> you midway through the installation after some files have been
>> removed/replaced.
>>
>> If you have other cygwin processes running, you may be left in an incomplete
>> state where you can't or don't want to kill the other cygwin processes
>> leaving you stuck in the middle of install while you wait to be able to
>> finish or kill the existing cygwin processes. Even worse, several core
>> cygwin utilities are now broken (such as 'ps') due to the partial install.
>>
>> I have done this inadvertently a couple of times when 'cygwin' gets thrown
>> in as a part of another intentioned download.

> If you buy the retail box version, it says right on the front cover don't do that.
>  
> :-)

  ROFL.

  This problem happened to me once.  I think it arises from setup.exe's dual
nature as an install/update-everything tool vs. its usage as a add/remove
programs/package manager.

  I'm planning on implementing an "add/remove programs" mode controlled by a
command-line switch, that basically skips over all the screens (as if in
unattended mode) except for the package chooser.  That way you can keep a
couple of shortcuts to it (maybe in the startmenu group?), one called "Cygwin
System Updater" that runs setup.exe as normal, and another called "Add/Remove
Cygwin Packages", that runs it with this new option.  I'm doing this for a
private project but I'll feed it back upstream when I get a spare moment(*).

    cheers,
      DaveK

-- 
(*) - Yep, haven't forgotten about the couple of other patches I'm half-way
through revising.

--
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

