[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with md5sum on ftp site



Piotr Roszatycki <dexter@fnet.pl> writes:
>I'm maintainer of local Debian mirror and I noticed problems with some
>downloaded files. Some files don't match md5sum and I need download them
>manually. 

I use the attached script to check my mirror.  Call it from the top
directory of the mirror, or give that directory as an argument.

		 - Jim Van Zandt

#!/bin/sh
#
DIR=$1
if [ "$1" = "" ]; then DIR=/debian; fi

date

echo "check for broken symlinks..."
find $DIR -follow 2>&1 | grep 'No such'

echo "check md5sums..."
cd $DIR
zcat indices/md5sums.gz | md5sum -c 2>&1 | grep 'fail.*deb'


Reply to: