cookutils rev 143

QA: exit if broken link (do it better)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 11 14:57:24 2011 +0200 (2011-05-11)
parents 73f8443e68e5
children 112dbe0ed058
files cook
line diff
     1.1 --- a/cook	Wed May 11 14:53:20 2011 +0200
     1.2 +++ b/cook	Wed May 11 14:57:24 2011 +0200
     1.3 @@ -567,9 +567,9 @@
     1.4  # Verify package quality and consistency.
     1.5  packit_quality() {
     1.6  	gettext "QA: Checking for broken link..."
     1.7 -	if find $taz -type l -follow; then
     1.8 -		echo -e "\nERROR: broken link in filesystem"
     1.9 -	fi
    1.10 +	link=$(find $taz -type l -follow)
    1.11 +	[ "$link" ] && echo -e "\nERROR: broken link in filesystem"
    1.12 +	status
    1.13  	
    1.14  	# Exit if any error found in log file.
    1.15  	if fgrep -q ERROR: $LOGS/$pkg.log; then