mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-10-23 19:58:20 +00:00
As of oe-core ba391d3, hashserv lookups will use authentication from the .netrc file. However, Kas will write invalid netrc files with comments, which causes bitbake to emit warnings. This has been fixed in Kas in e700729 but until Kas 4.3.2 is released we can ignore this warning specifically when checking the logs. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
20 lines
457 B
Bash
Executable File
20 lines
457 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=$(sed -e "/attempting MIRRORS if available/d" -e "/Error parsing .*netrc:/d" $LOGFILE | wc -l)
|
|
if test "$LINES" -ne 0; then
|
|
echo ==============================
|
|
echo The build had warnings/errors:
|
|
echo ==============================
|
|
cat $LOGFILE
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|