tazpkg rev 177

tazpkg: no MD5SUM MISMATCH for lost files or config files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 23 09:43:26 2008 +0000 (2008-10-23)
parents e4130459a6dc
children a0d51bc28e4e
files tazpkg
line diff
     1.1 --- a/tazpkg	Thu Oct 23 07:06:55 2008 +0000
     1.2 +++ b/tazpkg	Thu Oct 23 09:43:26 2008 +0000
     1.3 @@ -1613,9 +1613,19 @@
     1.4  		tazpkg bugs
     1.5  		if [ "$PACKAGE_FILE" = "--full" ]; then
     1.6  			for file in */md5sum; do
     1.7 +				CONFIG_FILES=""
     1.8 +				. $(dirname "$file")/receipt
     1.9  				[ -s "$file" ] || continue
    1.10 -				md5sum -c "$file" 2> /dev/null | grep -v OK$ |\
    1.11 -					sed 's/FAILED$/MD5SUM MISMATCH/'
    1.12 +				while read md5 f; do
    1.13 +					[ -f $f ] || continue
    1.14 +					for i in $CONFIG_FILES; do
    1.15 +						case "$f" in
    1.16 +						$i|$i/*) continue 2;;
    1.17 +						esac
    1.18 +					done
    1.19 +					echo "$md5  $f"
    1.20 +				done < "$file" | md5sum -c - 2> /dev/null | \
    1.21 +				  grep -v OK$ | sed 's/FAILED$/MD5SUM MISMATCH/'
    1.22  			done
    1.23  			FILES=" "
    1.24  			for file in $(cat */files.list); do