mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-04-20 11:29:54 +00:00
distutil warnings are causing CI to fail. This is caused by changes outside of meta-arm, and are not relevant for anything present in meta-arm. Temporarily ignore these until they can be handled upstream. Signed-off-by: Jon Mason <jon.mason@arm.com>
21 lines
527 B
Bash
Executable File
21 lines
527 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Expects the path to a log file as $1, and if this file has any content
|
|
# then display the contents and exit with an error code.
|
|
|
|
set -e -u
|
|
|
|
LOGFILE=$1
|
|
|
|
LINES=$(grep --invert-match -e "attempting MIRRORS if available" -e "distutils-common-base.bbclass is deprecated" -e "distutils3.bbclass is deprecated" $LOGFILE | wc -l)
|
|
|
|
if test "$LINES" -ne 0; then
|
|
echo ==============================
|
|
echo The build had warnings/errors:
|
|
echo ==============================
|
|
cat $LOGFILE
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|