cookutils rev 142

QA: exit if broken link
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 11 14:53:20 2011 +0200 (2011-05-11)
parents 926b959c282c
children c1f276ae5c0b
files cook
line diff
     1.1 --- a/cook	Wed May 11 14:27:53 2011 +0200
     1.2 +++ b/cook	Wed May 11 14:53:20 2011 +0200
     1.3 @@ -566,9 +566,16 @@
     1.4  
     1.5  # Verify package quality and consistency.
     1.6  packit_quality() {
     1.7 +	gettext "QA: Checking for broken link..."
     1.8 +	if find $taz -type l -follow; then
     1.9 +		echo -e "\nERROR: broken link in filesystem"
    1.10 +	fi
    1.11 +	
    1.12 +	# Exit if any error found in log file.
    1.13  	if fgrep -q ERROR: $LOGS/$pkg.log; then
    1.14  		rm -f $command && exit 1
    1.15  	fi
    1.16 +	
    1.17  	gettext "QA: Checking for empty package..."
    1.18  	files=$(cat $WOK/$pkg/taz/$pkg-*/files.list | wc -l)
    1.19  	if [ "$files" -lt 0 ] && [ "$CATEGORY" != "meta" ]; then