# HG changeset patch # User Christophe Lincoln # Date 1305118400 -7200 # Node ID 73f8443e68e5dd52e1ed71b23f73b72ff18ef5ab # Parent 926b959c282cd94e452609572010ec633f8f2e45 QA: exit if broken link diff -r 926b959c282c -r 73f8443e68e5 cook --- a/cook Wed May 11 14:27:53 2011 +0200 +++ b/cook Wed May 11 14:53:20 2011 +0200 @@ -566,9 +566,16 @@ # Verify package quality and consistency. packit_quality() { + gettext "QA: Checking for broken link..." + if find $taz -type l -follow; then + echo -e "\nERROR: broken link in filesystem" + fi + + # Exit if any error found in log file. if fgrep -q ERROR: $LOGS/$pkg.log; then rm -f $command && exit 1 fi + gettext "QA: Checking for empty package..." files=$(cat $WOK/$pkg/taz/$pkg-*/files.list | wc -l) if [ "$files" -lt 0 ] && [ "$CATEGORY" != "meta" ]; then