This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: Keeping a local mirror up to date


> -----Original Message-----
> From: Keith Christian 
> Sent: 03 September 2004 15:27
> To: Dave Korn

  Oops!  We should always keep questions and replies on the list - that way
they're there in the web archive for anyone else in future who comes along
with the same problem....

> Thanks - one more question - What if the mirror the original 
> mirror was
> created from is temporarily unavailable?
> 
> Example: This morning, the previous mirror was not available:
> 
> cygwin_install/dist/ftp%3a%2f%2fftp.nas.nasa.gov%2fmirrors%2fc
> ygwin.com%2fpub%2fcygwin
> 
> So I chose mirrors.kernel.org which created this directory:
> cygwin_install/dist/ftp%3a%2f%2fmirrors.kernel.org%2fsources.r
> edhat.com%2fcygwin
> 
> 
> Further:
> 
> 1. Suppose the local download directory of ftp.nas.nasa.gov 
> had version 1.1 of
> package foo.
> 
> 2. Suppose another local download directory of 
> ftp.nas.nasa.gov had a more
> recent version 1.2 of package foo.
> 
> 3. Suppose package foo is still at version 1.2 on any up to 
> date Cygwin
> mirror.
> 
> Then: Does SETUP.EXE check all existing local directories to see which
> contains the most up to date version of a file before 
> bothering to download it
> again? 

  Yes.

>  Does SETUP.EXE check only the local directory that 
> matches the mirror
> it is currently connected to?

  No.

  By design, setup searches through all the download directories, keeps
track of all the versions, should know exactly what you've already got and
never re-download something you already have; if it ever does, it's a bug.

  There is one caveat: if setup dies - actually crashes or is killed -
part-way through downloading a whole series of packages, it may not have
updated its catalog by the time it gets terminated, and so it might download
them again.  But once setup has downloaded and exited successfully, it
should know and remember what it's done and not do it again.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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


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