This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: whats left before releasing setup?


On Wed, 2001-11-07 at 02:48, Brian Keener wrote:
> Robert Collins wrote:
> > I'll happily accept a patch to not write the last-cache file for
> > download only installs. That combined with an alteration to cygpath I've
> > prepared to return NULL on failure should allow the cache read routine
> > to fail safely too. (with a check for NULL of course :]).
> >
> 
> I don't think we are saying to not write the last-cache file as I for one like 
> setup to be able to remember where the cache of downloaded packages 

so do I. 

> is and I 
> believe it has done that for a while - even before categories and dependencies. 

No, I wrote that code 3 days ago. Until then it always reset the cache
location to the current working directory.

> What we are saying is don't expect the user to start the install when no cygwin 
> is installed by forcing the entry of the cygwin root so that you can store the 
> last-cache file in the cygwin directory.  In the absence of an installed 

Yes. Thats what I am saying I will accept a patch for.

> version of cygwin then store the last cache wherever setup is located - just as 
> setup has always done in the past with the setup.log and setup.log.full. 

Thats an ok idea. However, you will also need to change the logic for
reading the last cache file to try /etc/setup/last-cache and if that
fails or cygpath returns NULL (which is what my patch in the last
related mail is for) fallback to trying last-cache in the CWD.
 
> At the point of doing a Download only why am I even concerned with the mount 
> points except to determine if cygwin is installed or not (which by the way is a 
> good reason but should a download only even care) and then to base certain 
> other functions on that result. 

Because there are two basic download only scenarios.
1) Download to take to other machines via zip disk etc - this machine
doesn't get involved in cygwin at all. 
2) Download for _this machine_ and for other via a networked cache dir.
You may not want to install the packages you download immediately on
this machine. 

IMO these are both valid, and as you can see one machine is in not
currently installed and the other is.

Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]