X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <496D0567.8090200@cygwin.com>
Date: Tue, 13 Jan 2009 16:19:35 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to make setup.exe default to local-install?
References: <gkge1d$158$1@ger.gmane.org> <496C2348.3010507@cygwin.com> <gki7n2$87k$1@ger.gmane.org>
In-Reply-To: <gki7n2$87k$1@ger.gmane.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
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

Grant Edwards wrote:
> On 2009-01-13, Larry Hall (Cygwin) <reply-to-list-only-lh AT cygwin DOT com> wrote:
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
>> On 01/12/2009, Grant Edwards wrote:
>>> It looks like a batch file would work, but it pops up a
>>> "nuisance" console window.  [Question: does "local directory"
>>> refer to the directory where setup.exe is located or to the
>>> current working directory?]
>> It refers to the local directory containing all the packages
>> in the directory structure you get when you download packages.
>> So it is neither the directory where 'setup.exe' is located
>> not the current working directory.
> 
> If it's neither the current working directory nor the directory
> where setup.exe is located, then how does setup.exe know where
> to find it?

Are you only interested in knowing where the local directory defaults
to the first time it is run on a machine without a Cygwin installation?
If so, then yes, it is CWD.  Otherwise, the local directory is the local
package directory where packages were downloaded last time, which may
not be the synonymous with the CWD at the time that you start 'setup.exe'.
In any case, the local directory to use is stored in
'/etc/setup/last-cache'.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

