delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/03/03:46:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 3 Sep 2004 17:46:03 +1000 (EST)
From: luke DOT kendall AT cisra DOT canon DOT com DOT au
Subject: Re: How to check your local mirror
To: cygwin AT cygwin DOT com
In-Reply-To: <20040903070932.B7A175B876@effinger.cisra.com.au>
MIME-Version: 1.0
Message-Id: <20040903074603.C709F8512B@pessard.research.canon.com.au>

On  3 Sep, fergus AT bonhard DOT uklinux DOT net wrote:
>  There are 3 parts to what the script does: 
>   
>  1. checks the timestamp on your local setup.ini with the one currently on 
>  the mirror; 
>  2. checks that the files you've got match the ones you should have (this 
>  just checks the names); 
>  3. checks the md5sum's. 

My script isn't doing steps 1 or 2 - that seems like good stuff to add,
thanks.

Step 3 seems to assume the path is /f/Cyg0, if I read it correctly.
Perhaps that should change to:

echo Check md5sum-s ...
sed -e "s|^|$1|g" tmpf.setup.chk.us.1 | xargs md5sum | \
sed -e "s|^$1||g" -e 's/^\(.*\) \(.*\)$/\2 \1/g' | sort > tmpf.setup.chk.us.4

(assuming I've understood what you're doing).

I'd also want to bail out I suppose if the mirror timestamp was older
than our one.

Also, I like the idea of detecting that our copy of the mirror is broken
(as opposed to just reporting it, and requiring manual observation and
may be intervention).

Once we get our mirror into a known good state, we could have a
secondary mirror that we try to update nightly (maybe rsync-ing from
multiple hosts), and only push out to the known good mirror if the
checksums on the freshly updated mirror pass the test.

Thanks,

luke


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019